Recently, due to the need of the project, I tested the wechat payment callback, but the wechat callback can only access the external network address, the internal network address on my computer cannot access, so I need to map the internal network address to the external network address, so that the external network can access my internal network project.

I found some tools on the Internet, such as peanut shell and NAT123. Many of them are charged. But I did find a free tool, NATAPP.

Here is how to use this software:

  1. First, download the software from NATAPP’s official website.

  2. Click on the client to download.

  3. Select the corresponding version to download according to your own system. After downloading, unzip to a directory containing only one file, the natapp.exe file.

  4. Go to the official website to register an account, real-name authentication and login.

  5. After login, click on the left side of the purchase tunnel, the right side of the free tunnel.

  6. The name can be customized, the tunnel protocol according to their own needs to choose, here I choose Web, port can default to 80, free users seem to change, I changed it once, changed to 8080.

  7. Click Free to complete the configuration.

  8. In the same directory as natapp.exe, create the config.ini file as follows:

    # Place this file in the same directory as NatApp and the program will read the [default] segment
    # The same parameters in command line argument mode such as natapp-authToken = XXX will override this configuration
    The command line argument -config= can specify any config.ini file
    [default]
    authtoken=      Authtoken for a tunnel
    clienttoken=                    # The authToken of the client will be ignored. If there is no authToken, leave blank
    log=none                        None = no record,stdout= direct screen output, default to None
    loglevel=ERROR                  The default log level is DEBUG
    http_proxy=                     The proxy Settings, such as http://10.123.10.10:3128, must be left blank for non-proxy users
    Copy the code
  9. Then go to the official website and click my tunnel, click Copy AuthToken.

  10. Add the authToken after AuthToken =, save it, and run natapp.exe.

  11. The interface is as follows:

    • Tunnel Status Online: indicates that the link is successful
    • Version: indicates the current client Version. If a new Version is available, a message is displayed
    • Forwarding: currently penetrating the url or port
    • Web Interface: a local Web management Interface that can be enabled or disabled during tunnel configuration. It is only used for Web development testing
    • Total Connections: indicates the Total number of Connections
    • Avg Conn Time 0.00ms: this does not represent a delay, note!
  12. Copy the url after Forwarding in the figure above and it can be accessed in the browser. The url is accessible from the Internet.