Fixed issue with IP address and port of server not being set correctly
if running on a real handset on a normal network.