Username: Password:

Author Topic: Specify IP address  (Read 298 times)

Offline tv99

  • Rookie
  • *
  • Posts: 3
    • View Profile
Specify IP address
« on: February 12, 2021, 07:02:45 AM »
I have attempted to change the localhost IP from 127.0.0.1 in the config.js file to an IP on an interface, and no luck.

Any suggestions would be most appreciated.

Thanks in advance.
T

Offline Aitor

  • Administrator
  • *****
  • Posts: 501
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: Specify IP address
« Reply #1 on: February 12, 2021, 10:18:52 PM »
I have attempted to change the localhost IP from 127.0.0.1 in the config.js file to an IP on an interface, and no luck.

Any suggestions would be most appreciated.

Thanks in advance.
T

Hi, are you trying to configure Gunbot access on a local network?

Offline tv99

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Specify IP address
« Reply #2 on: February 12, 2021, 11:31:54 PM »
Yes

Update
Found a method which addresses the initial question.  The solution is to change the localhost IP address from 127.0.0.1 to 0.0.0.0, which allows connecting to the host IP address:5000.
« Last Edit: February 13, 2021, 02:51:25 AM by tv99 »

Offline Aitor

  • Administrator
  • *****
  • Posts: 501
  • Telegram: @AitorRuiz Gunbot.shop
    • View Profile
    • Gunbot
Re: Specify IP address
« Reply #3 on: February 16, 2021, 09:05:54 AM »
Glad to hear you fixed it. I just want to remind that in most of the cases we don't need to change that api as it works for running the bot in our own computer / vps and also to access remotely from other computer.

Offline tv99

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Specify IP address
« Reply #4 on: February 16, 2021, 07:31:15 PM »
Needed the change in order to connect via browser to remote host using zerotier.