Username: Password:

Author Topic: How to specify the listening port?  (Read 11636 times)

dlucio

  • Guest
How to specify the listening port?
« on: July 23, 2017, 02:01:37 PM »
Each gunbot instance opens a localhost:XXXX random port which it gives very useful information. However, some little questions.

How do I specify to listen to another interface than loopback?
How do I specify a static port (and not random)?

:)

Offline paramecie

  • Contributor
  • **
  • Posts: 302
    • View Profile
Re: How to specify the listening port?
« Reply #1 on: September 22, 2017, 12:28:52 PM »
3.3.x ?
I'm not sure you can change this.
I'd suggest to use further versions, at least with 5.x you can, I didn't try the 4.x versions.
Otherwise port forwarding maybe?
HTH-

Offline paramecie

  • Contributor
  • **
  • Posts: 302
    • View Profile
Re: How to specify the listening port?
« Reply #2 on: September 23, 2017, 12:46:32 AM »
config.js :

   "ws": {
      "port": 5001
   },

That was obvious!
 ;D

Offline paramecie

  • Contributor
  • **
  • Posts: 302
    • View Profile
Re: How to specify the listening port?
« Reply #3 on: September 23, 2017, 12:43:24 PM »
No no, that was a joke, as "ws" could have been more self explanatory...