Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Nov 2000 17:48:29 -0600 (CST)
From:      Mike Meyer <mwm@mired.org>
To:        questions@freebsd.org
Subject:   Re: web hosting with a dynamic IP address question
Message-ID:  <14880.20429.721300.35133@guru.mired.org>

next in thread | raw e-mail | index | archive | help
David Banning <david@www3.pacific-pages.com> types:
> I would like to call into my computer and access it like a web host
> from somewhere else on the web.  My thought is that this should be possible
> if my IP address is known.  
> 
> Since my dynamic IP address changes on every dialup,
> would it not be possible for my FreeBSD machine to, following connection
> do some inquiry into what my IP address is, then have FreeBSD copy the
> IP address to my external WEB site, where I could have a link/script
> that takes the address and guides me into my home server?

Yup, you can do that. If you can put CGI on your external web site,
you don't even need to figure out what the IP address is. Use a CGI
script (hopefully password protected) that looks like:

#!/bin/sh
cat >../redirect.html <<EOF
<HTML><HEAD><TITLE>Redirect</TITLE></HEAD><BODY>
<P>Your machine is over <A HREF='http://$REMOTE_ADDR/'>there</A>.</P>;
</BODY></HTML>
EOF

cat <<EOF
Content-type: text/plain

Ok, it worked.
EOF

You ppp-linkup script then just needs to do an HTTP GET.

Other people mentioned dynamic DNS services. <URL:
http://www.dyndns.org/ > will provide this service for free. You use a
script to change their dns in ppp-linkup, and then always refer to
your machine with a hostname in one of their domains.

	<mike
--
Mike Meyer					http://www.mired.org/home/mwm/
Freelance WWW/Unix/FreeBSD consultant,		email for rates.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14880.20429.721300.35133>