如何使用命令行来建立socket连接 [英] How to establish socket connection using the command line
本文介绍了如何使用命令行来建立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
这篇关于如何使用命令行来建立socket连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文