0

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)

randomafk
  • 113

2 Answers2

0

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 foo.noip.com). Then, when you want to access your computer, just use the domain name.

Kruug
  • 5,250
0

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.

nerdwaller
  • 18,014