Tried the stack overflow suggested fix for not being able to read the IP address on a server.