socat端口转发-穿透网络

                  ------------
                 |   Server   |
                 |w/ public IP|
                  ------------
                 /            \
          {||}    {||}
                |                 |
          ----------          ----------        
         | Client A |        | Client B |
          ----------          ----------
       (hosting a service    (wanting to access
         on port 4200)         Client A port 4200)


On "Server":
socat TCP4-LISTEN:10000 TCP4-LISTEN:4200

On "Client A"
socat TCP4:Server:10000 TCP4:localhost:4200  


你可能感兴趣的:(socat端口转发-穿透网络)