Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: server 'autodiscovery' on a LAN

by matija (Priest)
on Nov 24, 2005 at 08:48 UTC ( #511355=note: print w/ replies, xml ) Need Help??


in reply to server 'autodiscovery' on a LAN

I'm a bit confused by your description. Are you saying the machine on which the script is running is or isn't "it's server"?

If the script runs on "some machine" out on the internet, needs to connect to the central server to get a configuration for this script instance.

Solution: the server should have a fixed name, and a simple DNS lookup will allow you to connect to the correct machine, even if you have to subsequently move it to a different IP. The very act of connecting to the server will tell the server what the client's IP is.

If the machine on which the client runs is "unconfigured" (doesn't even have an IP yet), you're much better off running DHCP client (or bootp client) or some other program which is specificaly written for getting and configuring an IP number than you'd be writing one on your own.


Comment on Re: server 'autodiscovery' on a LAN

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://511355]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2014-08-01 13:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (21 votes), past polls