How to use the mobile phone to access the PC Charles custom domain name?

Requirements: Mobile client access custom domain name on the PC, such as domain name configured on Nginx
as vv.zzcloud.com this domain is accessed by way of mapping on the host pc, now need access to the domain name on the phone.
Tools: Charles proxy tool
system: Mac OS

Projects need to view the phone-side page, through the simulator with Chrome as effective as the real machine, after all, some things really can not simulate, so I want to on the phone speaking directly effect the development environment

Since only developed, so I have not posted to the online page that is not accessible through the domain name to the line, so you have to think of other ways.

Attempt to penetrate the network used ngork this tool does fit, but can not penetrate the free version of custom domain name, ip only locahost and that obviously does not meet my needs.

As has been with Charles, wanted to see with this proxy tool on the Internet to find the next, most of them direct access to the PC's IP in this form, is not the domain name. Looking for a long time to find a related. Press the operation, is now on the phone you can directly access the page on a PC.

Operation is as follows:

  1. To ensure mobile phones and computers in a network segment, My environment is the same Wifi PC and mobile phone connected.
  2. Direct access to domain names on the PC will not do that because the domain name is configured in the PC above, without PC, it is necessary to use a proxy under Charles, let the phone through the PC.
  3. Find port (Proxy Setting) Charles proxy open, as I was the default 8888
  4. In connection to modify the phone network instead uses a proxy, the proxy IP IP write on the PC, write Charles proxy port port 8888
  5. Then on the phone will be able to access the domain name

PS: it seems you can also use Fiddler, but I use this little tool, I will not try, but the principle should be about. Open proxy on the line

Guess you like

Origin www.cnblogs.com/smartrui/p/10985893.html