[RESOLVED] vb6 winsock control with dynamic ip
hello... :wave:
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?? :confused:
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? :eek:
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? :lol:
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. :sick:
5-is there a way to get a computer name on the internet?? i heard not.. :eek2:
waiting for some ideas.. :wave:
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?? :confused:
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.
Quote:
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? :eek:
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.
Quote:
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? :lol:
Not sure what you mean... :confused:
Quote:
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. :sick:
Sounds ok to me, but #2 would be easier.
Quote:
5-is there a way to get a computer name on the internet?? i heard not.. :eek2:
Not sure what you mean. :ehh:
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