0 votes

Hi. I am coding an online game with Godot and Node.js. Node.js gives a different port number to every UDP client. That's good. But there is a problem. If I send anything to Node.js and Node.js sends back to Godot client, how Godot client know that message is sent to itself? I mean, if I also use another computer with the same IP, UDP sends the message to the proper port and IP yes, but the client will not understand if the message is for itself right? The client can use get_packet_port () but the client should use get_packet() first to take the port of the packet and if the packet is for another client, the packet is just gone.

in Engine by (27 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.