1.处于公网上的机器输入:netcat -luv <PORT> 2.另外一台机器(公网或其他):echo "test" | netcat -vu <另一台机器IP> <PORT> 即可 转载于:https://www.cnblogs.com/yinsua/p/4519699.html