External network mapping scenarios are often used in web development. For example, Alipay payment is successfully called back, and WeChat payment is successfully called back. The callback must be accessible from the external network. Interface joint debugging. Here are a few common methods.
1: The easiest way to use peanut shell mapping http://hsk.oray.com/
1-2 Web pages using peanut shells, no client, peanut shell web version
Mac computers can also use the web page without downloading the tool:
http://username:[email protected]/ph/update?hostname=yourhostname&myip=ipaddressComplete web development documentation error codes
http://ab6010264600:a111 password [email protected]/ph/update?hostname=dazer.iask.in&myip= The ip address after the
http://ab6010264600:[email protected]/ph/update?hostname=dazer.iask.in&myip=192.168.2.108
The ip behind is the ip of the local area network, not the ip of the local public network, remember.
Test access address http://dazer.iask.in:8999/safety/
2: Use router for external network mapping ( http://wguorun.blog.163.com/blog/static/163062382013617104823167/ )
Reference: Setting steps and precautions for port mapping/port forwarding of Feiyuxing router
Instructions for use: http://100.64.82.139:8889/qinheyuan/api/alipay/notify
3: ngrok server build domestic version of Sunny-Ngrok [email protected] Sunny ngrok introduction
http://dazer.ngrok.cc/
http://dazer88.ngrok.cc/
./sunny clientid f5ed7ecbd088cb44 (tunnel id) ./sunny clientid 7d3d2af8e458ff41 (tunnel 88id)
The above command must be opened on this machine, and the access is as follows:
http://dazer88.ngrok.cc
4: ngrok tunnel international version
Haven't tried it, friends who love toss, you can try it