Re: How to get my computers IP address
On 2005-06-30, 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?
ip=$(lynx -dump http://cfaj.freeshell.org/ipaddr.cgi)
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
==================================================================
Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress
<http://www.torfree.net/~chris/books/cfaj/ssr.html>
Reply to: