Sign in to follow this  
Followers 0
jWalker

Find public IP

7 posts in this topic

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?

Share this post


Link to post
Share on other sites



You can use Dynamic DNS service such as "No-IP". I think it's easier than writing a program :)

Share this post


Link to post
Share on other sites

Hmm then i will have to take a look if my router supports this :)

If not- any other possibilities?

Share this post


Link to post
Share on other sites

#include <Inet.au3>

$PublicIP = _GetIP()

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



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

Thanks but i know this ;)

I think you misunderstood my question!

I want a client program on another PC that finds out MY home IP adress

(BTW - i joined NO-IP.com :) )

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0