#21 Hosting Internet game uses wrong network interface

closed
nobody
None
5
2012-07-13
2012-06-24
kiri
No

When attempting to host an Internet game on a server where multiple network interfaces are present, MegaGlest selects an address to communicate on which may be the incorrect one.

Ways to handle this better include:
- listen to a wildcard address, such as 0.0.0.0
- select one according to the default route in the routing table of the server
- have the user specify one.

Discussion

  • Mark Vejvoda

    Mark Vejvoda - 2012-07-13

    People hosting a game were bound to 127.0.0.1 which works in most cases (I also have multiple NIC's and this works in Ubuntu 12.04). However i checked in the following fix into svn:

    serverSocketAdmin->setBindSpecificAddress(Config::getInstance().getString("ServerAdminBindAddress", "127.0.0.1"));

    meaning a user may add this to glest.ini or glestuser.ini

    ServerAdminBindAddress=127.0.0.1

    setting it to whichever value desired

     
  • Mark Vejvoda

    Mark Vejvoda - 2012-07-13
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks