Jump to content

Find public IP


jWalker
 Share

Recommended Posts

Hey,

i am hosting a minecraft server for me and a friend.

He is more often playing there than me because i have to go to work and so :)

My router reconnects at midnight... so he gets a new IP...

Now i decided to write a server client program that tells him the new IP - if i am not @ home...

My first idea was making like a program that connects to several generated IPs and if it connects and gets a "secret" string -

Then it would be the server...

But that would like need the same time than he must wait for me to tell him ;)

So is there any possibility to get this faster?

Link to comment
Share on other sites

#include <Inet.au3>

$PublicIP = _GetIP()

MsgBox(0, "IP Address", "Your IP Address is: " & $PublicIP)


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

You can only use 2 ways.

A) Create a static name for your dynamic IP by using dyndns or something like that or

B) The serevr needs to tell the client that the IP has changed.

There is no chance for the client to search for the server.

Edited by Xenobiologist

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...