I have made a online player game in which i use TCP connection between server and client, and UDP (DatagramSocket) between clients (its a real time game). My problem is that i can play with some friends but no with others, that is to say, my UDP connection works only with some PCs. I think the only possible r…
Tag: udp
Why doesn’t windows desktop broadcast UDP?
Alright, so my application is a peer to peer chat application, designed for LAN communication. Discovery is done by UDP broadcasting the ip & port at the UDP broadcast address (255.255.255.255). I’m running it on three platforms at once when testing: ubuntu (VM via VirtualBox, and it’s connect…
Should i use the same port numbers when sending data through UDP?
When we send data (in this case) to a client/server, does this really matter to use the same port number? My guess is no, because it doesn’t matter which port you are using when sending data to. (The protocol gives it to you randomly internally – this is the idea?) The only thing has to be kept, t…
UDP communication between Java and C#
I’m trying to communicate a Java program with a C# one but it’s not working. The code is really basic, here it is: This is the Java client And here it is the C# server The c# server is a Unity file, I mean, I execute it from Unity, so Start is the first method called. I would like them