Added method for getting ip

Gets the clients ip address, in case the client is behind a router at
home.