If your HTTP_SERVER is set to an IP address instead of a proper TLD, then you might have login problems.
Use a valid name, such as "localhost" instead of an IP address.