如何使用命令行来建立socket连接
问题描述:
如何建立使用Windows命令行我的socket连接?
How can I establish my socket connection using the Windows command line?
例如,我的插座IP和端口num是 192.168.1.180:9760
For example, my socket IP and port num is 192.168.1.180:9760
我只是想将命令发送到命令行的IP。
I just want to send commands to that IP from the command line.
答
您可以使用netcat的,或NC,因为它有时也被称为
You can use "netcat", or "nc" as it is sometimes called.
因此,如果服务器正在端口9760使用UDP,您可以使用:
So if the server is using UDP on port 9760, you can use:
nc -u 192.168.1.180 9760