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

Re: Finding your IP



on Mon, Jul 30, 2001 at 04:47:29PM -0400, JakeCatfox@aol.com (JakeCatfox@aol.com) wrote:
> How can I find out what my IP is once I connect to my PPP service?

    $ cat <<EOF > get-ip
    /sbin/ifconfig tun0 2>/dev/null | grep inet | awk '{ print $2 }'
    EOF
    $ chmod +x get-ip
    $ ./get-ip

-- 
Karsten M. Self <kmself@ix.netcom.com>      http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?         There is no K5 cabal
  http://gestalt-system.sourceforge.net/           http://www.kuro5hin.org
Free Dmitry!! Boycott Adobe!! Repeal the DMCA!!  http://www.freedmitry.org

Attachment: pgpBzWd8U2Px7.pgp
Description: PGP signature


Reply to: