Improved server IP address detection.