|
-
Jan 1st, 2005, 09:28 PM
#1
Thread Starter
Frenzied Member
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
Last edited by ice_531; Jan 2nd, 2005 at 01:08 PM.
Reason: dgl scolded me :(
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Jan 1st, 2005, 09:56 PM
#2
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.
-
Jan 1st, 2005, 10:01 PM
#3
Thread Starter
Frenzied Member
Re: ip change / client-server issue
 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.
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Jan 1st, 2005, 11:58 PM
#4
Re: ip change / client-server issue
I thought that i read about a hosting site that forwards traffic to dynamic IP addresses.
-
Jan 2nd, 2005, 12:00 AM
#5
Thread Starter
Frenzied Member
Re: ip change / client-server issue
 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
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Jan 2nd, 2005, 12:05 AM
#6
Re: ip change / client-server issue
Easiest would be to get a Static IP from the cable co.
-
Jan 2nd, 2005, 12:38 AM
#7
Thread Starter
Frenzied Member
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.
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Jan 2nd, 2005, 02:32 AM
#8
Lively Member
Re: ip change / client-server issue
Maybe this will help:
http://www.no-ip.com/
-
Jan 2nd, 2005, 03:16 AM
#9
Thread Starter
Frenzied Member
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
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Jan 2nd, 2005, 03:58 AM
#10
Re: ip change / client-server issue
you know the drill. close your thread...
-
Jan 2nd, 2005, 04:55 AM
#11
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|