|
-
Jan 9th, 2007, 01:34 PM
#1
Thread Starter
Lively Member
Domain IP Instant Messenger
Recently I created an instant messenger.
The IM Server runs on one pc, and the Clients run on various others.
The Client is able to connect to the Server, ONLY because it knows the Server's IP address.
The Problem is that everytime the PC with the IM Server reconnects, it gets a new IP address. And the Clients Don't know this New IP Address.
Please any advice or comments are welcome, I'm clueless on this topic.
Thanks!
Did you know...  ..that you live in a Universe?!
Code:
var Answer = Uni + Verse = single + spoken + sentence;
Life is amusing...
-
Jan 9th, 2007, 01:49 PM
#2
Re: Domain IP Instant Messenger
Use http://www.no-ip.org, its great in these situations or buy a fancy ip with a static ip
-
Jan 9th, 2007, 02:11 PM
#3
Thread Starter
Lively Member
Re: Domain IP Instant Messenger
Thanks, I looked at that site earlier today, do you know if there's a easier solution? Or a way that won't cost money?
Did you know...  ..that you live in a Universe?!
Code:
var Answer = Uni + Verse = single + spoken + sentence;
Life is amusing...
-
Jan 9th, 2007, 02:17 PM
#4
Fanatic Member
Re: Domain IP Instant Messenger
Here is a farrrr out idea.....When the server comes up, have it send a file to an ftp site of your choosing (there are a ton of free ones out there) with the current IP in it - you COULD even encrypt it if your worried about security. Modify your program to go first to that FTP site, download, decrypt and then have them use that IP to connect. This would help greatly in making sure that you would always have the up to date IP address.
******************************
I scare myself sometimes......
D
-
Jan 9th, 2007, 02:20 PM
#5
Re: Domain IP Instant Messenger
-
Jan 9th, 2007, 02:22 PM
#6
Lively Member
Re: Domain IP Instant Messenger
Why not just everytime you change IP send like "//setIP:<YOUR_IP_ADDRESS>" to all the clients? and the client then changes the IP to connect to everytime... and for the users that are offline... its their fault for not staying online lol... but if u really wanna start something you WILL need a static IP address... i think u can get that from ur ISP just tell them u need one... they'll give u one but might charge you extra for that... :-/
-
Jan 9th, 2007, 03:25 PM
#7
Thread Starter
Lively Member
Re: Domain IP Instant Messenger
do you think you could show me how you would send a file to a ftp site??? I've heard of that method before, but don't exactly understand it or know how to write code for it lol thanks
Did you know...  ..that you live in a Universe?!
Code:
var Answer = Uni + Verse = single + spoken + sentence;
Life is amusing...
-
Jan 9th, 2007, 03:43 PM
#8
Fanatic Member
-
Jan 9th, 2007, 04:23 PM
#9
Hyperactive Member
Re: Domain IP Instant Messenger
If the server and clients are on a intranet, you could use DNS to store the name and IP of the server, then have the client use DNS to resolve the name to the IP address. If the clients and server are comunicating over the internet, and the server doesn't have a static IP, you could use DynDNS, or some other dynamic DNS provider. Many are free.
This may be a bit more complicated, but it is more reliable, and conforms to normal standards. Don't ask me how to do it, though. I haven't had a chance to work in this area in .NET, yet.
-
Jan 9th, 2007, 04:29 PM
#10
Re: Domain IP Instant Messenger
I just dont see why no-ip.org is of no interest Ive used it myself, free, and it worked just as it should.
-
Jan 9th, 2007, 04:33 PM
#11
Fanatic Member
Re: Domain IP Instant Messenger
I do agree with Atheist I the free and no additional work needed no-ip.org is the fastest and easily more reliable way to go, my original post was meant to be kind of joking even though it would work it is very far out in left field, however if they want/need to learn how to do something then I certainly would not deny them that priveledge. I had to chuckle at the "conforms to normal standards comment".....priceless.
Of course I am hopped up on Dayquil today so that could be why.......
D
-
Jan 10th, 2007, 02:01 AM
#12
Thread Starter
Lively Member
Re: Domain IP Instant Messenger
Atheist, I have tried no-ip.org before, but although it seems free, you still have to enter a credit card number - which I don't have so it isn't actually an option for me!
But it seems on the right track...
I would also appreciate help with a similar question:
Although I've got IIS installed on my PC, I can't view the web pages on it from another PC.
for eg on my PC I will type:
http://mypcname/mywebs/sample.aspx
but from another PC it won't work! Why is this?
You can tell I'm clueless lol, thanks so much for the help everyone
Did you know...  ..that you live in a Universe?!
Code:
var Answer = Uni + Verse = single + spoken + sentence;
Life is amusing...
-
Jan 20th, 2007, 07:33 AM
#13
Thread Starter
Lively Member
Re: Domain IP Instant Messenger
 Originally Posted by Krenshau
If the server and clients are on a intranet, you could use DNS to store the name and IP of the server, then have the client use DNS to resolve the name to the IP address. If the clients and server are comunicating over the internet, and the server doesn't have a static IP, you could use DynDNS, or some other dynamic DNS provider. Many are free.
This may be a bit more complicated, but it is more reliable, and conforms to normal standards. Don't ask me how to do it, though. I haven't had a chance to work in this area in .NET, yet.
Yo thanks man! dynDNS.com works perfectly!!! Just what I needed
Here is link of an Update Client for your Dynamic IP:
http://a.domaindlx.com/GreatPumpkinator/dyndns.html
enjoy!
Did you know...  ..that you live in a Universe?!
Code:
var Answer = Uni + Verse = single + spoken + sentence;
Life is amusing...
-
Jan 20th, 2007, 10:19 AM
#14
Thread Starter
Lively Member
Re: Domain IP Instant Messenger
And here is another dynDNS Update Client in VB.NET! Happy coding! God Bless!
http://www.breezetraining.com.au/sit...try&EntryID=99
Last edited by xera; Jan 21st, 2007 at 04:02 AM.
Did you know...  ..that you live in a Universe?!
Code:
var Answer = Uni + Verse = single + spoken + sentence;
Life is amusing...
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
|