wan-ip etc..

arri

Registered
Hi

i'm not so much a programmer, and also don't know reallly how to write shell scripts and stuff like that,
but i recently got my hands on a nice (old) G3, which i want to use as a (web)server, from my home which is connected by a dsl/cable connection, without a static ip.

So i want this machine to check the wan-ip every now and then, and upload it to some webspace at a host, where i can find this. This way i'll be able to connect to my home network through ssh for instance..

problem is, this machine is also used for guests and friends that 'want to check their email' or something, so there should be a way to have guest logins, while this wan-ip-checking-deamin is running in the background...

i found a number of apps that will upload current wan-ip to an ftp server, but none of them will run as a deamon..

does anyone know a way to hack into a script or something to do what i want (check wan-ip, and if changed uopload to ftp-server), while still having the opportunity for users to log into accounts on this machine without disturbing the deamon?

sorry if i sound strange... i am
hope you understand

regards
arrr
 
I suggest you get an account at dyndns.org. Basically you run a daemon on your computer that periodically checks your IP address, and whenever it changes, updates dydns.org's DNS server records. You can then just refer to a hostname that periodically gets the IP address updated.

You will need a client, I think the best one for OS X is dnsupdate - get it from dnsupdate.org
 
What kind of internet connection do you have? There is a good tutorial on serving your own site over at macdevcenter, Just ignore the part about sendmail if you have panther because serving mail is handled by postfix.
Also if you have dsl or cable, you will probably have a static dns name that your isp uses to keep track of you. Go to terminal and type nslookup [your wan ip]. If you don't know your wan ip offhand try surfing to http://www.ipchicken.com/, your wan ip is big and right under it is your "name address," which your isp probably never changes. I think you could use this to register a real domain to your machine.
 
Back
Top