Recently, I was writing that a crawler needs an IP proxy. I found that the proxy IP in the market is not only expensive, but also easy to be detected. There are too few available. Later, I found that the quality of our mobile phone IP is very good, which can escape almost all IP detection, and when the mobile phone restarts the network, the IP will change again. In this way, a mobile phone can become a dynamic IP by restarting the network.
So the question is, how can I turn my mobile phone into an HTTP proxy server?
Building an HTTP proxy server with squid on the server is simple. There is ksweb software on the mobile phone that can turn your mobile phone into a server, but the IP on the mobile phone can not be accessed directly through the public IP, or can only be accessed in the LAN. After an idea, I mapped the mobile phone IP to the public network with the peanut shell. I found that we can access our mobile phone through the IP + port assigned to us by the peanut shell, and then implement the proxy.
Then the problem comes again. I need a lot of IP. It’s impossible to restart the network manually. Moreover, restarting the network takes at least 5 seconds. Is it too slow? And I’ve been restarting the network. Is the peanut shell too unstable?
1. It is impossible to restart the network manually all the time. Writing a script to restart regularly is the perfect solution
2. Make more mobile phones, and then transfer the allocation interface request through our own server. The general process is: interface request – > our own server – > assigned to the accessed mobile phone – > the mobile phone initiates a request to the target – > the request result returns to our own server – > our own server returns the result to the application that initiated the request.
The above can be realized on the android app.