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 …
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’…
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, the port has
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 static InetAddress ip; static int port = 10000; public …