PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Implement Proxy Support

Open nazzer23 opened this issue 10 years ago • 30 comments

Idk how to request that you add proxy support so uhm here?

nazzer23 avatar Aug 11 '16 08:08 nazzer23

Correct me if I'm wrong, but a proxy only handles browser traffic. You want a VPN. There are free and paid ones and the bot works fine through a VPN.

RedViper9 avatar Aug 11 '16 08:08 RedViper9

We had a PR that added proxy support to the bot so that you can use a VPN. It had a bug and was reverted.

Perhaps @alecuba16 can re-add that functionality, or someone can utilize the code he wrote the first time to implement this feature.

elicwhite avatar Aug 11 '16 08:08 elicwhite

There are HTTP and Socks proxies. HTTP proxies tunnel HTTP/HTTPS requests only while socks can tunnel all requets. But isn't Pokemon Go just using HTTP(S) requests anyways? A VPN would be overkill. There aren't that many VPNs so ppl would end up having the same and getting banned anyways, there are far more HTTP/SOCKS proxies out there.

maddo7 avatar Aug 11 '16 09:08 maddo7

I think I have IP banned because I can't login with my google account: [11:32:38] Loading cached location... [11:32:38] Loaded location (34.009797, -118.49813, 0.0) from cache [11:32:38] Login procedure started.Traceback (most recent call last): File "pokecli.py", line 530, in main() File "pokecli.py", line 138, in main report_summary(bot) File "pokecli.py", line 147, in report_summary metrics.capture_stats() File "/home/raviss_e/PokemonGo-Bot/pokemongo_bot/metrics.py", line 76, in capture_stats response_dict = request.call() File "/home/raviss_e/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 90, in call if not self.can_call(): File "/home/raviss_e/PokemonGo-Bot/pokemongo_bot/api_wrapper.py", line 58, in can_call raise NotLoggedInException() pgoapi.exceptions.NotLoggedInException

but with my PTC account, it's work fine...

Lordedi avatar Aug 11 '16 09:08 Lordedi

@RedViper9 No, proxies handle all sorts of traffic, depending on their type. Most Socks proxies handle a lot more then just your browser traffic.

Dracon23 avatar Aug 11 '16 09:08 Dracon23

@Lordedi When you're IP banned, the bot it's just walking but no pokemon appear. I think your problem is somewhere else.. You maybe have an error with your config files, or installation dependency, try launching it with docker.

albttx avatar Aug 11 '16 12:08 albttx

@ale-batt maybe but since yesterday I cannot resolve my problem :/

Lordedi avatar Aug 11 '16 12:08 Lordedi

Are you using the dev branch ?

albttx avatar Aug 11 '16 12:08 albttx

Yes

Lordedi avatar Aug 11 '16 12:08 Lordedi

the last update ? git fetch ; git pull

albttx avatar Aug 11 '16 12:08 albttx

Yes 💃

Lordedi avatar Aug 11 '16 12:08 Lordedi

hi how can i use vpn/proxy to connect bot ?

Carlito007 avatar Aug 11 '16 12:08 Carlito007

@Lordedi So no idea... Try a different config file :/

albttx avatar Aug 11 '16 12:08 albttx

@ale-batt Yes, strange because ptc account works fine but not google mh Anyway thanks for your help

Lordedi avatar Aug 11 '16 13:08 Lordedi

I am running the Bot on a Ubuntu VPS and it works perfect for an Hour or two..then it looks like i get a IP-Ban because he wont find Pokestops or Pokemon to catch.

Is there a known work-around for using a proxy with the Bot ?

MaxPPP avatar Aug 11 '16 16:08 MaxPPP

Set an environment variable for http_proxy and just run normally. That shell window will be proxied to the IP till you close it.

export http_proxy=http://server-ip:port/ 

jalliance avatar Aug 11 '16 18:08 jalliance

Will there be support for SOCKS Proxies as well ?

mrik974 avatar Aug 11 '16 21:08 mrik974

Similiar issues #3489 #3488 #3477 #3233

umbreon222 avatar Aug 11 '16 23:08 umbreon222

Where this variable has to be inserted?

export http_proxy=http://server-ip:port/

steffenreimann avatar Aug 12 '16 06:08 steffenreimann

You dont have to "insert it", just type this command before launching the bot via your command prompt.

Le 12 août 2016 à 08:22, steffenreimann [email protected] a écrit :

Where this variable has to be inserted?

export http_proxy=http://server-ip:port/

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

mrik974 avatar Aug 12 '16 06:08 mrik974