Results 1 to 3 of 3

Thread: [RESOLVED] vb6 winsock control with dynamic ip

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    6

    Resolved [RESOLVED] vb6 winsock control with dynamic ip

    hello...

    i have been developing a winsock game, it all works well. the problem is that my ip is dynamic so i want the best method to serve the game..

    for now i have some ideas but i want to be pointed in the right way..

    1-i've tried to make a friend connect directly to a game server with services such as no-ip and dyndns...it doesnt seem to work ....but giving my ip to him surely works.. is this only for http??

    2-ive thinking to make the main game server connect to a website and upload its ip and port, to say a text file or binary file.. so the client can
    retrieve it... somehow this seems wrong to me?

    3-the third is decoding somehow the ip from say the no-ip server to retrieve my original ip and bang....but is this really necessary?

    4-use some of these previouss steps like dl a file from a webserver that has an ip and it specifies if its to connect directly or get its ip from that server.. and also the port.

    5-is there a way to get a computer name on the internet?? i heard not..


    waiting for some ideas..

  2. #2
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: vb6 winsock control with dynamic ip

    Quote Originally Posted by mu_ds
    1-i've tried to make a friend connect directly to a game server with services such as no-ip and dyndns...it doesnt seem to work ....but giving my ip to him surely works.. is this only for http??
    I've used No-IP before. Make sure you are running the No-IP client program, and have the box checked next to your DNS name.

    2-ive thinking to make the main game server connect to a website and upload its ip and port, to say a text file or binary file.. so the client can
    retrieve it... somehow this seems wrong to me?
    Nothing wrong with this, as long as the server you're storing the file on doesn't go down or something.

    This is usually the best way to do it. If you have to change your DNS name, you can just change the text file, and not have to update the game's code.

    3-the third is decoding somehow the ip from say the no-ip server to retrieve my original ip and bang....but is this really necessary?
    Not sure what you mean...

    4-use some of these previouss steps like dl a file from a webserver that has an ip and it specifies if its to connect directly or get its ip from that server.. and also the port.
    Sounds ok to me, but #2 would be easier.

    5-is there a way to get a computer name on the internet?? i heard not..
    Not sure what you mean.

  3. #3
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: vb6 winsock control with dynamic ip

    You cant get the computer name, and even if you could, you cant connect to a machine on the internet with only the computer name, you can only do that on your local network.

    The best thing to do is get some web space and put a txt on there, have your app download the txt data which will be the IP.

    Other than that, you can purchase a domain name, and then just have your app connect to that for example MyGame.com you can then change the IP that the domain directs to anytime you want
    Chris

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