Results 1 to 11 of 11

Thread: ip change / client-server issue[resolved]

  1. #1

    Thread Starter
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    Resolved 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++

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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.

  3. #3

    Thread Starter
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    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.
    :::`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++

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: ip change / client-server issue

    I thought that i read about a hosting site that forwards traffic to dynamic IP addresses.

  5. #5

    Thread Starter
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    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
    :::`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++

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: ip change / client-server issue

    Easiest would be to get a Static IP from the cable co.

  7. #7

    Thread Starter
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    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++

  8. #8
    Lively Member
    Join Date
    Jan 2004
    Posts
    82

    Re: ip change / client-server issue

    Maybe this will help:
    http://www.no-ip.com/


  9. #9

    Thread Starter
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    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++

  10. #10
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Resolved Re: ip change / client-server issue

    you know the drill. close your thread...

  11. #11
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    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
  •  



Click Here to Expand Forum to Full Width