Udp client not reachable from another application?

I maybe miss the point but I think that in order for your client to be able to accept the connection attempts by other application running on your server you need to implement some listening module in your client (server-like part that accept incoming connections). You can find some usefull examples here: java2s.com/Code/Java/Network-Protocol/UD....

Your comment, "when client connects to a server.." made me wonder if you used connect() on client's DatagramSocket. If so, don't call connect() on the socket. UDP is a connection-less protocol and connect() is not required.By calling connect() on UDP socket, the socket can only send/receive data to/from the host specified with the connect().

If this is not the case, then only reason I can think of is that your client machine may have some firewall enabled, or there's a NAT/Firewall in between your client and the server or other hosts. Check with Wireshark whether your client is receiving any packets from the other app. Hope this helps.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions