use no-ip.com + set your router settings:
-forward port 7777
-set the router update your IP to no-ip.com if there's such option, if it's not available download no-ip client or make your own in python for example:
Code:
import urllib, time
myurl = "myserver.servegame.com" # "servegame.com" is avalable on no-ip.com
username = "michalmonday"
password = "sikrit"
myip = urllib.urlopen("http://iptools.bizhat.com/ipv4.php").read()
update_url = "http://" + username + ":" + password + "@dynupdate.no-ip.com/nic/update?hostname=" + myurl + "&myip=" + myip
oldip = myip
while True:
myip = urllib.urlopen("http://iptools.bizhat.com/ipv4.php").read()
if myip != oldip:
print "IP changed:"
print "Old IP=" + oldip
print "New IP=" + myip
update_url = "http://" + username + ":" + password + "@dynupdate.no-ip.com/nic/update?hostname=" + myurl + "&myip=" + myip
print 'no-ip.com response=' + urllib.urlopen(update_url).read()
oldip = myip
time.sleep(20)
Router settings vary so it's difficult to find the exact tutorial, I change mine at the address: 192.168.0.1
By default, most router manufacturers use 192.168.0.1 or 192.168.1.1 as the default LAN IP address
Idk how to forward ports on your router but on mine I go to the address above (input it in the browser just like google.com), then go to "Security -> Services" add a service for 7777 port, then to "Security -> Firewall Rules and add the newly created service under "Inbound Services" where local IP of my PC has to be put (use command prompt -> ipconfig to see your local IP)
If you go to your default router page (probably 192.168.0.1) and it asks you for a login/password then find it on google, for mine default was: sky/0000