Hi, To elaborate a bit more on my question: - I have a UDP server implemented that waits for a message of a client. The server answers the client request with its IP and port number to use. - The client does not know where the server runs, therefore it has to do the broadcast. - If the handshake works, the client start communication to the server over TCP.
The server is a replacement for an application written in C++. The client I'm currently developing is for testing the communications, but will later be used for implementing clients that use the server. I have been playing around a bit with the UDP implementation of the client. Depending on the IP broadcast address I use, the server sees the request and answers but this is not received on the client (255.255.255.255). Or the client connects and sends the message but nothing is received on the server (10.10.10.255). Repeating this to the server IP works. I think I forgot something in the implementation or firewall, but I do not see at this moment. jkrabbenbos wrote: > > Hi, > > I'm trying to implement a UDP client that sends a broadcast with Mina > 2.0.0-M3 but it seems that I always have to give the network address. > Can I simply use the X.X.X.255 address for that or is there a > different way of doing that? I've tried with 255.255.255.255, but that > I could not get to work. > > Greetings, > Jan > > -- View this message in context: http://www.nabble.com/UDP-Broadcast-tp20244506p20266307.html Sent from the Apache MINA User Forum mailing list archive at Nabble.com.
