How to establish socket connection using the command line

batch-file, sockets, windows

Solution

You can use "netcat", or "nc" as it is sometimes called.

So if the server is using UDP on port 9760, you can use:

nc -u 192.168.1.180 9760

Problem

How can I establish my socket connection using the Windows command line? For example, my socket IP and port num is `192.168.1.180:9760` I just want to send commands to that IP from the command line.

Original source