[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to get my computers IP address



On Thu, Jun 30, 2005 at 06:01:19PM +0800, Mitja Podreka wrote:
> I have ADSL connection which I share over a router and Apache server 
> installed on my laptop running Debian Sarge. Before I started to share 
> ADSL connection I sometimes used the server to share bigger files with 
> my friends. I told them the URL of the file based on my current IP and 
> they could download the file directly from my computer/server.
> But now the IP I get from myip.com or from syslog file is the IP of the 
> router. Is it still possible to share files as I used to and how can I 
> do it? Which is my computer's IP now?

Your router has an 'internal' IP address and an external
one. The internal IP is the one that you connect to from
your home network -- 192.168.1.1 or whatever. The external
one is the one that the rest of the world sees, and has been
assigned by your cable company.

Your router uses something called 'Network Address
Translation'. Suppose you want external users to be able to
connect to your machine via FTP (port 21). You tell your
router to forward all external requests for port 21 on to a
specific machine within the local network -- for instance,
your laptop, whose internal IP address may be something like
192.168.1.107.

By default, routers turn off all port forwarding. You need
to manually configure them to forward. But once you have,
you should be back in business.

Note that your external IP may change frequently. That's why
I registered a dynamic domain name when I got a cable modem
-- the IP may change, but 'laniels.org' will always be
there. Then use ddclient or somesuch tool to update the
domain name system with your domain's current IP.

-- 
Stephen R. Laniel
steve@laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key

Attachment: signature.asc
Description: Digital signature


Reply to: