LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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


Reply
  Search this Thread
Old 07-15-2010, 01:24 PM   #1
mohtasham1983
Member
 
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408

Rep: Reputation: 30
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.
 
Old 07-15-2010, 01:52 PM   #2
ogin
LQ Newbie
 
Registered: Nov 2005
Posts: 11

Rep: Reputation: 1
This isn't really a Linux question. Try somewhere like StackOverflow as they're really good with questions like these.
 
Old 07-15-2010, 02:01 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by ogin View Post
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.
 
Old 07-15-2010, 02:13 PM   #4
mohtasham1983
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: Reputation: 30
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.
 
Old 07-15-2010, 02:39 PM   #5
ogin
LQ Newbie
 
Registered: Nov 2005
Posts: 11

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


Reply

Tags
multicast, network


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Network Hostname Discovery sirbijan Linux - Networking 1 05-12-2010 08:40 AM
network map/discovery OTIM Linux - Networking 4 01-13-2008 08:23 PM
Network discovery programs Tortanick Linux - Networking 11 10-26-2007 02:06 AM
Network Discovery Utility metallica1973 Linux - Networking 3 08-09-2007 12:53 PM
How to do Network Discovery bzlaskar Linux - Networking 2 05-17-2006 11:27 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration