Nope. I know it's cheap but is not free.
And my code is working. I just want to make it better. I can even put
some code in my Hosting server to return my IP address instead of using
whatismyip.com.
Oliver Wong - 17 Apr 2006 22:13 GMT
> Nope. I know it's cheap but is not free.
> And my code is working. I just want to make it better. I can even put
> some code in my Hosting server to return my IP address instead of using
> whatismyip.com.
no-ip.com provides different services. The so called "Free" service is
free. See http://www.no-ip.com/services/managed_dns/free_dynamic_dns.html
On the other hand, the "Free" service is intended for "personal use
only". Not sure how that fits in with your site (which I believe you
mentioned makes a bit of money). You might want to read the contract
carefully to see what is or isn't allowed.
I used to use the free service, but eventually I just bought a domain
name and a static IP.
- Oliver
Roedy Green - 18 Apr 2006 00:24 GMT
> On the other hand, the "Free" service is intended for "personal use
>only". Not sure how that fits in with your site (which I believe you
>mentioned makes a bit of money). You might want to read the contract
>carefully to see what is or isn't allowed.
there are a number of other such services. Check them out via
http://mindprod.com/jgloss/dyndns.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Alex Hunsley - 17 Apr 2006 23:54 GMT
> Nope. I know it's cheap but is not free.
No-ip.com is free, I've been using it at work for ages and it's still free.
Also dyndns.org is free. I actually recommend dyndns.org, because they
provide you with a free download called noipDuc (or similar) that runs
on your machine and updates their DNS servers whenever your external IP
changes.
Also, my wireless router (Linksys WRT54G) has a feature in the admin web
pages to allow auto updating of your dyndns address, so I don't even
have to run noipDuc on my desktop machine any more.
> And my code is working. I just want to make it better. I can even put
> some code in my Hosting server to return my IP address instead of using
> whatismyip.com.
I'd seriously avoid doing this in your own code - I appreciate it works,
but it seems inelegant, when dyndns.org works so well and is free.
Amfur Kilnem - 18 Apr 2006 00:16 GMT
> Nope. I know it's cheap but is not free.
> And my code is working. I just want to make it better. I can even put
> some code in my Hosting server to return my IP address instead of using
> whatismyip.com.
I have created another solution that works pretty well, and it is entirely
self-contained (ie, no third-party software or fees).
I have a small program running on my home server (Sun Netra). It's actually
two threads: one is a mini-server, which listens on a local port; the other
will access that port every few minutes, at my last known IP address, asking
for a magic number. If the magic number is wrong, or there's no response
from the mini-server, then the IP must have changed, so the program will
then access a CGI script on my remote (paid-for) website. That CGI script
will extract my home IP from the request header, and save it to a file. It
will also return the IP address back to my home server, where it will be
saved to my "last known IP" file. So now my home IP is saved at both ends.
It gets better. I have another CGI script on my remote web-site, which acts
as another mini-server. When this one is accessed, it will open a
connection to my home server (it has the IP address, remember!), and will
pass the query portion of the request to the home server, where it will be
passed to Tomcat, which creates HTML from a mixture of JSP and Servlets.
And because the home server also knows the home IP, it can plug that IP
address into the newly-created pages. What this means in practice is that I
can create content which contains references to images (for example) that
are on my home machine. The address bar in the browser still points at my
remote website, while some (or all) of the content is here at home. And
even if my IP changes, the generated pages will always contain the correct
IP.
Homer - 18 Apr 2006 13:42 GMT
Very cool. nice work (what do you think about my solution?).
I beleive those free services (like noip, dynip,..) are a bit slow
since it will take some time to update DNS servers everywhere.
Homer - 18 Apr 2006 13:55 GMT
BTW. I can use this to return my IP: (just save it to something.cgi and
call it)
#!/usr/bin/perl
use warnings;
use strict;
use CGI qw/:standard/;
my $remote_ip = $ENV{'REMOTE_ADDR'};
print header;
print "Your IP is: $remote_ip\n";
Amfur Kilnem - 18 Apr 2006 15:06 GMT
> Very cool. nice work (what do you think about my solution?).
I had tried the same thing, but accessing my remote server every few seconds
was generating huge log files.
My method generates no log files, and no internet traffic, until the IP
changes.