• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

How to bind to an IP address?

Scheduled Pinned Locked Moved Technical Support
4 Posts 2 Posters 2.4k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chas
    wrote on last edited by chas
    #1

    Does nodebb bind to all IP address by default? this is my config.json and it listens to all my IP addresses on port 80

    "url": "http://149.202.63.125:80",
    "secret": "blahblahblah1",
    "database": "redis",
    "redis": {
        "host": "127.0.0.1",
        "port": "6379",
        "password": "",
        "database": "0"
    }
    

    }

    so to get it binding only to the 149.202.63.125 address do i have to add something like this?

    "socket.io": {
    	"address": "149.202.63.125"
    }
    "port": "80",
    

    but it doesnt work 😞

    1 Reply Last reply
    0
  • C Offline
    C Offline
    chas
    wrote on last edited by
    #2

    I also tried

    "host": "149.202.63.125",
    "port": "80",

    but no luck

    1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #3

    Use the (undocumented, actually) config.json property bind_address

    1 Reply Last reply
    0
  • C Offline
    C Offline
    chas
    wrote on last edited by
    #4

    @julian said:

    bind_address

    thanks @julien works 🙂

    1 Reply Last reply
    1

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development