Giter VIP home page Giter VIP logo

Comments (6)

medrimonia avatar medrimonia commented on July 30, 2024

From various RoboCup experience, this kind of bug is very often related to the presence of another GameController running on the same network (since it uses UDP broadcast). In most of our team code, we implemented safe guards to show warnings when there are messages received from two different IPs.

from gamecontroller.

omichel avatar omichel commented on July 30, 2024

OK, thank you, I will double check it.

from gamecontroller.

omichel avatar omichel commented on July 30, 2024

That indeed explains many of the headaches I was having because I was running the tests on several machines on the local network here, and they were randomly failing because of this... I shall probably fix the referee to drop UDP packets coming from a different IP address to avoid this problem in the future...

from gamecontroller.

omichel avatar omichel commented on July 30, 2024

I am indeed receiving packets from two different IP addresses, but strangely, none of them correspond to my local machine... One correspond to another machine on the network running a GameController and the other one correspond to an IP address which is not allocated on my local network. I am not an expert of UDP broadcast and I don't understand why the GameController running on my machine IP=192.168.123.11 is sending UDP packets which the referee receives from IP = 192.168.91.1. Is that normal?

from gamecontroller.

medrimonia avatar medrimonia commented on July 30, 2024

One of the option that might happen is that the interface used is the one from WiFi if your computer is connected through both ethernet and WiFi. Otherwise, I'm not sure of where the issue could come...

from gamecontroller.

omichel avatar omichel commented on July 30, 2024

I ruled out this by disabling the wifi interface, but the problem remains. It seems UDP broadcast computes a special IP address based on the local IP and broadcast mask... Not sure yet about the details... I will continue to investigate.

from gamecontroller.

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.