Username: Password:

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

Offline dlucio

  • Trust: (0)
  • Rookie
  • *
  • Posts: 4
    • View Profile
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 Cryptolator

  • Trust: (0)
  • Rookie
  • *
  • Posts: 4
    • View Profile
Re: How to specify the listening port?
« Reply #1 on: September 22, 2017, 03:46:29 AM »
I would also like to know how can we specify a port to use ?

Offline paramecie

  • Trust: (0)
  • Junior Member
  • **
  • Posts: 259
    • View Profile
Re: How to specify the listening port?
« Reply #2 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 Cryptolator

  • Trust: (0)
  • Rookie
  • *
  • Posts: 4
    • View Profile
Re: How to specify the listening port?
« Reply #3 on: September 23, 2017, 12:39:44 AM »
Thanks for the reply ! :)

I'm currently using 5.x

How can I specify a port using 5.x ?

Thanks :)

Offline paramecie

  • Trust: (0)
  • Junior Member
  • **
  • Posts: 259
    • View Profile
Re: How to specify the listening port?
« Reply #4 on: September 23, 2017, 12:46:32 AM »
config.js :

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

That was obvious!
 ;D

Offline Cryptolator

  • Trust: (0)
  • Rookie
  • *
  • Posts: 4
    • View Profile
Re: How to specify the listening port?
« Reply #5 on: September 23, 2017, 02:10:46 AM »
Ouch, yeah, lol !

Feel a bit stupid now, haha :P

Thanks !

Offline paramecie

  • Trust: (0)
  • Junior Member
  • **
  • Posts: 259
    • View Profile
Re: How to specify the listening port?
« Reply #6 on: September 23, 2017, 12:43:24 PM »
No no, that was a joke, as "ws" could have been more self explanatory...