Home > other >  Two problems in PC communication network
Two problems in PC communication network

Time:10-02

1, local area network (LAN) A with A PC to server, listening on port 20000, how to go from outside network access to the port?
2, local area network (LAN) with PC by accessing A third party sites, establishing A connection, LAN B also have PC through access to third party sites, connection is established, and the third party within A PC to A LAN IP (IP) networks outside and tell LAN port B in PC, PC within the local area network (LAN) B whether can according to the IP and port to the local area network (LAN) in A PC message? LAN within A NAT will place LAN B PC message forwarded to the internal PC or discard?

CodePudding user response:

1, need your router with public IP, and not behind NAT network, can be directly in the router to do port mapping (80443, sometimes also includes 8080, these port is the default operator shielding, avoid using)
2, you can't, HTTP belongs to short connection services, after the completion of the request link is disconnected, even hold a link, the client connected to end in the web server, in the Open state rather than listening state, will not respond to connect, but can transfer messages via the web server (need in Open under the condition of long links, or change the HTTP service to the underlying TCP services and hold)
  • Related