LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Network discovery in Java (https://www.linuxquestions.org/questions/programming-9/network-discovery-in-java-820039/)

mohtasham1983 07-15-2010 01:24 PM

Network discovery in Java
 
Hi,

I'm trying to make a client/server Java App. Both client and server will be running on the same wi-fi network. Server will be running on a specific port that client is aware of.

I am planning to send a multicast message from client through the network for that specific port to discover the server. However, I'm not too sure how I can find out which IP in my network received my message.

Do I need to create a socket on the client and listen to incoming packets once I send my multicast message in case server replies back?

Thanks in advance.

ogin 07-15-2010 01:52 PM

This isn't really a Linux question. Try somewhere like StackOverflow as they're really good with questions like these.

acid_kewpie 07-15-2010 02:01 PM

Quote:

Originally Posted by ogin (Post 4034422)
This isn't really a Linux question. Try somewhere like StackOverflow as they're really good with questions like these.

Programming is not specifically for Linux based questions, I would say that the original question is perfectly at home here.

mohtasham1983 07-15-2010 02:13 PM

I've always received very informative answers on here. That's why I tried to ask it on here. Anyways, I asked the same question on stackoverflow.

ogin 07-15-2010 02:39 PM

@acid_kewpie Doh, forgot which forum I was in. I hope the stackoverflow recommendation helped though.


All times are GMT -5. The time now is 04:16 AM.