Help me with TCPConnect

Recommended Posts

Venix 2

Venix 2

I am trying to create an application that will let me know if a friend’s Minecraft server is online, it will achieve this by trying to connect to the server and if it receives an error then it will change the label accordingly. Unfortunately the code I tried to connect to the server is always returning an error and displaying offline, I'm not quite sure what I am doing wrong as this is the first time I’ve tried to use a TCP connection in a program.

Please note that I am only trying to connect to an I.P and it has nothing to do with game automation.