System.net.sockets.socket.doconnect
May 12, 2017 · The first call works fine because my localhost machine (127.0.0.1) accepts a connection to the default http port (80):Connection established to: 127.0.0.1:80 However, the second attempt fails because my machine does not accept connections on port 4444 (I tried to pick a random port number here, though some machines may run services on this port).