PoGoMap-GUI icon indicating copy to clipboard operation
PoGoMap-GUI copied to clipboard

PokeAlarm, hardcoded host ip

Open GlassToeStudio opened this issue 8 years ago • 4 comments

Can we not set our own host ip for PokeAlarm? Its currently hardcoded in the Form1.cs as: "runwebhook.py -H 0.0.0.0".

Does the program no longer read from the config? or is there an option (besides building form sources) to input our own host?

V3.2.6

GlassToeStudio avatar Oct 01 '16 18:10 GlassToeStudio

Correct you can not set. I was making this for the simple user that wanted to get it up and running fast. You map be able to use the config. Im not sure what has priority config or command line.

Go2Engle avatar Oct 01 '16 18:10 Go2Engle

Command line has priority I believe. I edited the config with no change.

Future update: Advanced options tab maybe?

GlassToeStudio avatar Oct 01 '16 18:10 GlassToeStudio

I was actually thinking about adding something like this in the future. I have an idea how I can easily add this. hopfully in the next week i will have some time.

Go2Engle avatar Oct 02 '16 03:10 Go2Engle

Well, to get around this i added a line in the runwebhook.py

right before #startupserver i manually set my ip

config['HOST'] = "0.0.0.0"

That's not my ip obviously

#Start up Alarm_Manager
alarm_thread = Alarm_Manager()
alarm_thread.start()
config['HOST'] = "0.0.0.0"    #Your IP in quotes
#Start up Server
log.info("Webhook server running on http://%s:%s" % (config['HOST'], config['PORT']))
server = wsgi.WSGIServer((config['HOST'], config['PORT']), app, log=logging.getLogger('pywsgi'))
server.serve_forever()

GlassToeStudio avatar Oct 08 '16 14:10 GlassToeStudio