Added timeout to test and removed hardcoded ip address
Replaced "localhost" with ip address from InetAddress
Replaced "localhost" with ip address from InetAddress