0

I'm playing around with some server side things in Python and I'd like the program to be able to be used outside of my LAN. What would be the best way about this?

Deamonized
  • 3
  • 1
  • 3

1 Answers1

4

Off the top of my head you could use an external webpage that returns your ip. For example using the page myip.dnsdynamic.org:

import urllib2
myip = urllib2.urlopen("http://myip.dnsdynamic.org/").read()
heplat
  • 100
  • 2