Re: find all computers in LAN submask
- From: Chris Cox <ccox_nopenotthis@xxxxxxxxxxx>
- Date: Fri, 16 Jan 2009 09:27:05 -0600
Gernot Frisch wrote:
Hi,
we're working on a game for a handheld device, running linux.
We want a network mode, where each client automatically finds the
"server" conputer in LAN. So, my idea was to get a list of all
responding ip addresses and query each one if the server program is up.
Usually you do some kind of registration and the client does a look up
for the service. Things like openslp (slpd) etc, are some examples
that servers could use to advertise things. The handheld clients
would query via slp protocol for the server on the network.
However, ping'ing 254 computers seems a dull idea to me.
Assuming a /24 netmask eh? Imagine a /16, etc!! Also, you
cannot assume that a machine will answer a ping request. Or anything
else you might throw at it (especially in this age of firewalls).
What would you advice?
Switch to a mechanism where the client use some kind of Service
Location whatever solution to find the server...
You might have a managed switch on a LAN that can tell you
about some things... but I think that's the WRONG idea.
.
- References:
- find all computers in LAN submask
- From: Gernot Frisch
- find all computers in LAN submask
- Prev by Date: Re: Viewing the padded bytes
- Next by Date: which distro?? need to build 32 and 64 bit applications with -m32 and -m64
- Previous by thread: Re: find all computers in LAN submask
- Next by thread: Join the grandchildren
- Index(es):
Relevant Pages
|
Loading