xiiing
V2EX  ›  互联网

netcat 在广域网连不上,正常吗?

  •  
  •   xiiing · Apr 8, 2016 · 1914 views
    This topic created in 3712 days ago, the information mentioned may be changed or developed.

    下边的命令只能在局域网连接,可以双向发送数据。

    nc -l 1234

    nc 192.168.0.101 1234

    如果是用 UDP 则勉强可以连接,服务器能接收到数据,客户端接收不到。

    nc -u -l 1234

    nc -u 27.12.175.47 1234

    这个 IP ( 27.12.175.47 )是路由器的外网 IP ,并做了相应的端口转发到 192.168.0.101 。

    这种情况正常吗?请大家指点一下。谢谢!

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2829 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 12:18 · PVG 20:18 · LAX 05:18 · JFK 08:18
    ♥ Do have faith in what you're doing.