Current location - Music Encyclopedia - Earning online - How to connect kafka program in internal network through external network
How to connect kafka program in internal network through external network

first, the intranet IP can only access the connection in the intranet LAN, and the intranet IP cannot be recognized and accessed in the external network. If there is routing authority and the routing has a fixed public IP, the external network can access the internal network through the port mapping of the routing. If there is no route, or the route has no public IP, it is necessary to use the nat123 port mapping network opened by a third party to assist the external network to access the internal network.

The advantage of port mapping network assistance is that it can be applied to any network environment. The implementation process of accessing the internal network from the external network:

Install and enable nat123 port mapping in the internal network. Add mapping, configure the mapping information of the internal and external networks, and correspond to the IP port of the internal network and the domain name of the external network. External network address can be directly used to prompt the default domain name.

after p>NAT mapping, IP applications corresponding to the intranet can be connected through domain name access.

second, the third-party open peanut shell port mapping network should be used to assist the external network to access the internal network.

method

1. install and enable peanut shell port mapping on the intranet. Add mapping, configure the mapping information of the internal and external networks, and correspond to the IP port of the internal network and the domain name of the external network. External network address can be directly used to prompt the default domain name.

2. Click on the domain name you want to map, enter the interface for adding peanut shell port mapping, and click to open intranet mapping.

3. The application name can be easily remembered. The intranet host is the IP address of the computer you want to be accessed by the public network, and the intranet port is the port you want to be mapped, as follows. My intranet host is this machine, that is, 192.168.21.251, and the port to be mapped is 1124. Click OK to start port mapping.

4. Now a mapping record will be added to the port mapping window. At this time, after the peanut shell is mapped, you can connect to the IP application corresponding to the intranet through domain name access. As long as the public network uses this domain name+port allocated by peanut shell, it can access the host of the internal network.