ip change / client-server issue[resolved]
Is there anyway to implement someway to auto change the connection ip throughout my server code upon the servers computer ip changing. The computer i currently have the server running on is a cable connection but the ip changes about every 2 days during a 2 minute downtime (computer restart).
No i cannot keep the computer up 24/7, have to restart...or resources will start to be horrible and so shall the speed of the server. Just need someway to change ip in code during runtime i guess.
My first idea was to have a textfile on a webserver be updated everytime the computer logs online with the current ip address...then the server on form_load check the textfile to see if the ip matches with current in server, if not then change to textfile ip..etc
Not sure about it though, i'd like suggestions/comments :)
Thanks
Re: ip change / client-server issue
just use the IP address as a variable, and read the text file that contains the value on startup. I'm not sure about the easiest way to get the IP address. Prolly using Scripting Control.
Re: ip change / client-server issue
Quote:
Originally Posted by dglienna
just use the IP address as a variable, and read the text file that contains the value on startup. I'm not sure about the easiest way to get the IP address. Prolly using Scripting Control.
This was my original plan, but i am looking for other ways though. Mainly a way directly through code without involving a webserver. :)
Re: ip change / client-server issue
I thought that i read about a hosting site that forwards traffic to dynamic IP addresses.
Re: ip change / client-server issue
Quote:
Originally Posted by dglienna
I thought that i read about a hosting site that forwards traffic to dynamic IP addresses.
Yep, dns- sumthing lol i've been there some time ago, but then i would be using 3rd party software :( wanna do it myself :cry:
Re: ip change / client-server issue
Easiest would be to get a Static IP from the cable co.
Re: ip change / client-server issue
I can set the ip to static myself. lol It's just theres other factors involved in which i don't want a static one ;) No can do. I have cable on here aswell, but i've got it setup to renew ip every so often.
Re: ip change / client-server issue
Maybe this will help:
http://www.no-ip.com/
:wave:
Re: ip change / client-server issue
heh, thats the dns server we were talking about. At least the one i was thinking of anyways.
ah well, guess it isn't worth my time finding another way, ill just go with the webserver idea :)
Re: ip change / client-server issue
you know the drill. close your thread...
Re: ip change / client-server issue
you may be able to query your cable modem, it sould know the ip it is connected to
rgds peter