That's actually just an outline of a class...
I need to learn stuff like
int port = 80;
IPAddress ipaddr = IPAddress.Parse("120.2.5.2");
IPEndPoint endpoint = new IPEndPoint(ipaddr, port);
Socet s = new Socket(endpoint.AddressFamily, SocketType.Stream, ProtocolType.TCP);
s.Connect(endpoint)
if (s.Conncted) {Console.WriteLine("port" + port + "is connected"; s.Close(); }