Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-15-2010, 01:24 PM
|
#1
|
Member
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408
Rep:
|
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.
|
|
|
07-15-2010, 01:52 PM
|
#2
|
LQ Newbie
Registered: Nov 2005
Posts: 11
Rep:
|
This isn't really a Linux question. Try somewhere like StackOverflow as they're really good with questions like these.
|
|
|
07-15-2010, 02:01 PM
|
#3
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
Quote:
Originally Posted by ogin
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.
|
|
|
07-15-2010, 02:13 PM
|
#4
|
Member
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408
Original Poster
Rep:
|
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.
|
|
|
07-15-2010, 02:39 PM
|
#5
|
LQ Newbie
Registered: Nov 2005
Posts: 11
Rep:
|
@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 06:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|