Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm on a university network, so I don't have any control of the routing settings and the sort. That being said, I do have the perks of having fairly fast speeds, especially within the network. I have taken full advantage of this by using remote desktop regularly.

However, I no longer have a static IP and am instead on a dynamic one. How do I broadcast this local IPL Could I register a local hostname? Or maybe email it to myself whenever it changes?

(I am running windows 7)

share|improve this question
up vote 0 down vote accepted

You could script a way to obtain your IP, save it to a .bat file, set up a scheduled job to run every X hours, then output the IP to a location such as Dropbox or Google Drive. That way, you can always access the txt file wherever you are and get the current IP.

You can also sign up for a service such as NoIP to assign a domain name (usually Then, when you want to access your computer, just use the domain name.

share|improve this answer
I tried using NoIP but it seems like it broadcasts my global, not local, IP – randomafk Feb 1 '13 at 4:58
@randomafk ah, yeah. I didn't know you weren't public-facing. My college opened that all up so we could use that solution. – Kruug Feb 1 '13 at 13:34
just set it up with this bat script! – randomafk Feb 1 '13 at 14:06

You could make a pretty simple python script that checks your local IP and emails (or texts) you if it changes. The downside is this way, you'd need to do a task scheduler to run it (as with most ways with scripts).

You could get the local ip in Python with:

import socket
socket.gethostbyname( socket.gethostname() )

You could use that to save the latest known IP to a file, and check the new IP verses the IP in the file and email you if it's different (and obviously update the old file).

I have a python script I use to do the email using gmail's SMTP servers through a dummy account here on Github.

I think socket and email are both in the standard library for Python.

This will work cross-platform if python and the modules are installed.

share|improve this answer
I was thinking of doing this, and probably will. Was hoping for a cleaner solution. but thanks1 – randomafk Feb 1 '13 at 4:59
Yeah, I haven't found any great ways to do it on a local network. Used to have a similar problem back when I was in school too - python was the easiest way to work cross-platform for me. I do like @Kruug's idea of just syncing that file to a dropbox/drive/other folder. – nerdwaller Feb 1 '13 at 6:20
just set it up, more convinient that emails I think. – randomafk Feb 1 '13 at 14:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.