validated ip address before trying a connection