Code Monkey home page Code Monkey logo

Comments (4)

hampusborgos avatar hampusborgos commented on May 16, 2024

The worlds table IP is set by the server on startup to the value in config.lua. If the value in config.lua is "auto", it will do a reverse ip lookup and use that value.

The words table is intended to be read by login servers only to get the location & ports of different gameservers.

from server.

stolendata avatar stolendata commented on May 16, 2024

Just in case it wasn't obvious... 0x100007F which the server always binds to regardless of what you specify in config.lua is the little-endian host byte order of localhost: 1.0.0.127.

I'm curious about the idea behind updating the IP in the worlds table each time the server starts up. If the IP the server binds to is gathered from config.lua anyway, what is the rationale behind storing it and keeping it updated in the worlds table as well? Future plans of multi-homed hosting?

from server.

stolendata avatar stolendata commented on May 16, 2024

Found the issue after poking around in the source code: configmanager.cpp looks for parameter "server_ip", while the stock config.lua defines the parameter as just "ip".

from server.

 avatar commented on May 16, 2024

Setting the property as "server_ip" solves the issue?

from server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.