PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

[Question] What is the "gui_port_socker" for?

Open casper-gh opened this issue 10 years ago • 12 comments

I can open the GUI on the port I specified in gui_port, but what is gui_port_socket for?

Please excuse my networking stupidity.

casper-gh avatar Jul 31 '16 17:07 casper-gh

gui_port_socket is for the Websocket which is used to pass data from the Server to the GUI.

citruz avatar Jul 31 '16 17:07 citruz

It's the Socket.io server port that feeds the data to the GUI. Due to the way this was implemented it has to run on a different port.

langerhans avatar Jul 31 '16 17:07 langerhans

Your browser will get the data it needs from the socket port.

If you run multiple bots on one computer you would have to input a unique portnumber for each bot (this is why it is in the config).

Sieberkev avatar Jul 31 '16 17:07 Sieberkev

@Sieberkev so specify 2 ports for each bot? Can I only set gui_port and disable gui_port_socket? (ie, set it to 0)

casper-gh avatar Jul 31 '16 17:07 casper-gh

Oh nvm I got it, sorry guys for my stupid question

casper-gh avatar Jul 31 '16 17:07 casper-gh

How can i open the GUI?

qifbox avatar Jul 31 '16 18:07 qifbox

You have to visit http://localhost:8000/ in your browser when the bot is running

Sieberkev avatar Jul 31 '16 19:07 Sieberkev

and how do you setup a unique port? so you can run multiple bots at the same time

Spiritwolf213 avatar Jul 31 '16 22:07 Spiritwolf213

For now, in the configuration file:

Port where the webserver (gui) should listen, 0 = do not listen

gui_port=8000

Port where the socketserver should listen, 0 = do not listen

gui_port_socket=8001

When multibot support will be done, I guess all bots can be followed via the one GUI but that is far from ready yet.

Sieberkev avatar Jul 31 '16 22:07 Sieberkev

any specific numbers you need to fill in?

Spiritwolf213 avatar Jul 31 '16 22:07 Spiritwolf213

No, just be sure you aren't using ports that are possible in use yet :) When they are in use you will get an error on startup so you know you have to change the number

Sieberkev avatar Aug 01 '16 08:08 Sieberkev

Fyi: updated and now only a socket port is specified.

jabbink avatar Aug 03 '16 15:08 jabbink