The reason why you can access a process of a machine in the intranet through IP+ port number is because the router will be configured to bind the port corresponding to the external network to the IP+ port of the intranet, and the IP of the intranet will be bound to this server, so that they will correspond. In this way, when accessing through the external network IP+ port, it is equivalent to accessing the program with the internal network IP of XXX. XXX。 XXX port is XXX. It may be complicated in practice, but this is the basic principle.
I use a concrete example to illustrate:
If the ip of the external network is183.238.18.55, the port number is 10000, and the IP of the internal server is192.168./kloc-0. 2. Map the port number of external access, that is, port 10000 corresponds to port 5000 on internal port192.168.101.
In this way, when accessing through IP+ port number, you are actually accessing the application program on the internal IP server. After accessing the application, you can access your project through the project path!