I test success Environment: win7+tomcat+nat123
Because the computer has been in the intranet environment, and the purchase of the server is too expensive, so think there is no way to use their own computer as a server, and then for mobile phones and other devices, of course, if there is no problem in the same LAN, but the dynamic IP so that every time the IP address must be changed to be the application can run normally, The final use of the peanut shell, for the computer with public IP, with peanut shell is not a problem, for the use of port mapping of the private IP, peanut shell is invalid, under the rogue again replaced, finally used nat123 to do domain name resolution, Through the Nat123 mapping intranet 8080 (tomcat default port, can change itself, specific method Baidu) port to a custom domain name, while specifying an external network port (80, etc.), but must choose 80 port (site) map to access through the mobile phone, peer-tested phone can not access, after completion, will be able to access their own website through the mobile phone, and no need to change the IP, for testing mobile communications, is very convenient.
How to use your own computer as a server through the domain to achieve public network access