test-port-open: connect() to ip:port to check if it is open