Giter Site home page Giter Site logo

Comments (9)

timfel avatar timfel commented on May 24, 2024

(by artofwar)
Just a quick bump to let you know this still doesn't work as of the latest 8746.

Fresh build on OS X 10.8.3, no errors or warnings during compile.

from stratagus.

timfel avatar timfel commented on May 24, 2024

(by iddqd-mail)
I have this bug too, though I can connect on the localhost if I launch 2 instances of stratagus.exe each with different port using -P command line option

from stratagus.

timfel avatar timfel commented on May 24, 2024

(by iddqd-mail)
The bug-creating change was added in rev.8675. Will try to investigate the problem.

from stratagus.

timfel avatar timfel commented on May 24, 2024

(by joris-dauphin)
Little explanation:
In InitNetwork1(),
instead of trying to use a port in range CNetworkParameter::Instance.localPort + [0; 10[
we use only the one specified (CNetworkParameter::Instance.localPort).
(So if it is the server, its port is the one specified, and client don't have to guess which port in range is used).
If we can't use the port, an error message should be displayed on stderr.

This should affects only when using multiple instance on a single machine though...

from stratagus.

timfel avatar timfel commented on May 24, 2024

(by iddqd-mail)
Well, I've mistaken, the real problem is revision 8665, when UDP protocol handling was changed

from stratagus.

timfel avatar timfel commented on May 24, 2024

(by iddqd-mail)
Just tested it on network between Windows 2000 SP4 and Windows 7 SP1 and rev.8664 worked well whereas rev.8665 refused to join to game

from stratagus.

timfel avatar timfel commented on May 24, 2024

(by iddqd-mail)
Looks like i've fixed the bug, but the fix is ugly, need to fix it more correctly

from stratagus.

timfel avatar timfel commented on May 24, 2024

(by joris-dauphin)
I see you removed an usage of CNetworkParameter::Instance.localHost

I would say this var may be useful when computer has several network cards...
(but I'm not an expert).

The last usage of this variable is in master.cpp for TCP.
So, if you solution is correct,
Can you try if it is useful there and if not remove completely this var ?
I cannot test this network bug since I have only one machine (and previous code worked in that case :-/ ).
Thanks.

from stratagus.

timfel avatar timfel commented on May 24, 2024

(by artofwar)
Just wanted to note that this appears to be fixed for me now.

Thanks cybermind!

from stratagus.

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.