Don't convert empty string to local ip address
Added ability to check status of connect with non-blocking sockets