| View previous topic :: View next topic |
| Author |
Message |
John Battle Guest
|
Posted: Sat Nov 15, 2008 8:31 am Post subject: find my ip address |
|
|
I have seen people use finger (or who) to get their own user name and
then ping it to find their IP address as seen by a computer on the other
side of a VPN. They used awk to filter it on the command line somehow.
Anybody know how to do that? I want to make a better way to get my ip
address as seen by a unix machine on the other side of a VPN, so I can
automate the process of exporting the display.
--
John Battle |
|
| |
|
Back to top |
SM Guest
|
Posted: Sat Nov 15, 2008 8:31 am Post subject: Re: find my ip address |
|
|
2008-11-15, John Battle skribis:
| Quote: | I have seen people use finger (or who) to get their own user name and
then ping it to find their IP address as seen by a computer on the other
side of a VPN. They used awk to filter it on the command line somehow.
Anybody know how to do that? I want to make a better way to get my ip
address as seen by a unix machine on the other side of a VPN, so I can
automate the process of exporting the display.
|
I don't know about the "finger and ping"-method but there are many ways to
do it. Here are the two I'm using.
$ ifconfig eth0 | grep inet | cut -d: -f2 | cut -d" " -f1
$ lynx -dump http://www.ipnow.org/ | grep "Your IP Address Is" |
cut -d" " -f8
You may want to alias them in your .bashrc (or .bash_aliases) if you
need them frequently.
--
kasmra
:wq |
|
| |
|
Back to top |
Jasen Betts Guest
|
Posted: Sat Nov 15, 2008 7:24 pm Post subject: Re: find my ip address |
|
|
On 2008-11-15, John Battle <jobattle@caltech.edu> wrote:
| Quote: | I have seen people use finger (or who) to get their own user name and
then ping it to find their IP address as seen by a computer on the other
side of a VPN. They used awk to filter it on the command line somehow.
Anybody know how to do that? I want to make a better way to get my ip
address as seen by a unix machine on the other side of a VPN, so I can
automate the process of exporting the display.
|
Start again.
what do you have?
What is your goal?
you can't ping a username. |
|
| |
|
Back to top |
Lawrence D'Oliveiro Guest
|
Posted: Sun Nov 16, 2008 7:17 am Post subject: Re: find my ip address |
|
|
In message <EZGdnbfiV5E08IPUnZ2dnUVZ_v7inZ2d@earthlink.com>, John Battle
wrote:
| Quote: | I have seen people use finger (or who) to get their own user name and
then ping it to find their IP address as seen by a computer on the other
side of a VPN.
|
You ping an IP address or a host name, not a username. |
|
| |
|
Back to top |
jellybean stonerfish Guest
|
Posted: Sun Nov 16, 2008 8:24 am Post subject: Re: find my ip address |
|
|
On Sat, 15 Nov 2008 00:35:21 -0600, John Battle wrote:
| Quote: | I have seen people use finger (or who) to get their own user name
|
Try fingering yourself, and see if it gives you the results you are
looking for. |
|
| |
|
Back to top |
S.D.Allen Guest
|
Posted: Sun Nov 16, 2008 5:00 pm Post subject: Re: find my ip address |
|
|
On 16 Nov 2008 06:00:09 GMT, jellybean stonerfish in alt.os.linux wrote:
| Quote: | Try fingering yourself, and see if it gives you the results you are
looking for.
|
ROFLOL |
|
| |
|
Back to top |
Tom Neilson Guest
|
Posted: Sun Nov 16, 2008 7:48 pm Post subject: Re: find my ip address |
|
|
S.D.Allen wrote:
| Quote: | On 16 Nov 2008 06:00:09 GMT, jellybean stonerfish in alt.os.linux wrote:
Try fingering yourself, and see if it gives you the results you are
looking for.
ROFLOL
|
Now, that's just plain rude; funny, but rude <smirk> |
|
| |
|
Back to top |
sk8r-365 Guest
|
Posted: Sun Nov 16, 2008 10:36 pm Post subject: Re: find my ip address |
|
|
jellybean stonerfish made a definite or systematic statement of:
| Quote: | On Sat, 15 Nov 2008 00:35:21 -0600, John Battle wrote:
I have seen people use finger (or who) to get their own user name
Try fingering yourself, and see if it gives you the results you are
looking for.
|
Rollin' on the floor!
--
sk8r-365
"He who knows best knows how little he knows." - Thomas Jefferson |
|
| |
|
Back to top |
Steve Ackman Guest
|
Posted: Sun Nov 16, 2008 11:09 pm Post subject: Re: find my ip address |
|
|
In <EZGdnbfiV5E08IPUnZ2dnUVZ_v7inZ2d@earthlink.com>, on Sat, 15 Nov
2008 00:35:21 -0600, John Battle, jobattle@caltech.edu wrote:
| Quote: | I have seen people use finger (or who) to get their own user name and
then ping it to find their IP address as seen by a computer on the other
side of a VPN. They used awk to filter it on the command line somehow.
Anybody know how to do that?
|
Exactly as you've stated works in certain
circumstances. We don't know enough about your
circumstances (OSes, network setup, privileges, etc)
to determine what your problem, much less solution,
might be.
| Quote: | I want to make a better way to get my ip
address as seen by a unix machine on the other side of a VPN, so I can
automate the process of exporting the display.
|
Finding the IP address of your own machine is as simple
as ifconfig.
Another option would be to use netstat, and if you
want to find the IP address in dotted quad of a remote
machine logged in to your machine (which is what it
sounds like you're REALLY trying to do), simply add
the --numeric-hosts option, for instance in Debian,
$ netstat --numeric-hosts | grep ssh
HOWEVER, you've said "unix" machine. netstat on
FreeBSD, for instance, doesn't have the same options
as netstat on Lenny. The above command supplies
helpful info Debian Lenny, for instance, but returns
"illegal option" in FreeBSD.
If you were more specific in your question, people
could be more specific in their answers.
And oh, yeah... your IP address is 216.175.85.148
Last I had DSL, IP address only changed with power
outages that lasted longer than the UPS batter... or
every 90 days, whichever came first.
This cable IP address I have now hasn't changed in
years.
--
☯☯ |
|
| |
|
Back to top |
Simon. (Zed Are Seven) Guest
|
Posted: Sat Nov 22, 2008 6:33 am Post subject: Re: find my ip address |
|
|
on 16 Nov 2008 06:00:09 GMT, jellybean stonerfish <stonerfish@geocities.com>
wrote this wisdom:
| Quote: | On Sat, 15 Nov 2008 00:35:21 -0600, John Battle wrote:
I have seen people use finger (or who) to get their own user name
Try fingering yourself, and see if it gives you the results you are
looking for.
|
ROTF !!! and the right answer too !!
--
Simon.
'Be Seeing You.
Who is number one?
I will not be pushed, filed, stamped, indexed, briefed, de-briefed or numbered.
Registered Linux User #300464 Machine Id #188886
Linux Counter - http://counter.li.org/
Remove the s.p.a.m to reply |
|
| |
|
Back to top |
|