PokemonGoF / PokemonGo-Web

49 stars 48 forks source link

Remote Connection failed #96

Closed DRiNVAD3R closed 7 years ago

DRiNVAD3R commented 7 years ago

When accessing on web on the host machine everything works, but once I access remotely (via ip in same network) I keep getting the Error: Connecting to 'http://127.0.0.1:4000' failed. Retrying after 30 seconds.

It says before:

Loading Data..
Data Loaded!
Trainer Loaded: XXX

EDIT: Trainer Data works fine, shows Pokémon and Items but the Location seems to be bugged

cierzniak commented 7 years ago

Same here in WebUI i see log:

12:47
Reconnecting to http://127.0.0.1:4002...
12:47
Reconnecting to http://127.0.0.1:4001...
12:47
Reconnecting to http://127.0.0.1:4000...
12:47
Connecting to 'http://127.0.0.1:4002' failed. Retrying after 30 seconds.
12:47
Connecting to 'http://127.0.0.1:4001' failed. Retrying after 30 seconds.
12:47
Connecting to 'http://127.0.0.1:4000' failed. Retrying after 30 seconds.
12:46
Trainer loaded: xxx3
12:46
Trainer loaded: xxx2
12:46
Trainer loaded: xxx1
12:46
Data Loaded!
12:46
Loading Data..
DRiNVAD3R commented 7 years ago

Ok I found the mistake. Following files have to be changed:

where XXX.XXX.XXX.XXX is your host machines IP address so for example 192.168.178.26:4000

After changing this I can remotely access the Web GUI and everything works as it should.