Host machine's ip address command required

Using applications, configuring, problems
Post Reply
Message
Author
sethuraman
Posts: 1
Joined: Fri 04 Aug 2006, 16:03

Host machine's ip address command required

#1 Post by sethuraman »

Hi All,

I use a konsole window of my login name say ABC with IP adress 10.445.234.34
Using this window i telnet to a remote machine whose user name is
XYZ and his ip address is 10.345.453.344.

Now i want a help that which command can be used to find the local machine username
( ABC ) and Ip address ( 10.445.234.34 ) from the same telnet konsole where i have connected to XYZ.

If i give hostname -i .
I get the host XYZ's IP. where as i need ABC's ip or username to be displayed.

Can any one help me out this please.
Thanks in advance
Sethu.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#2 Post by sunburnt »

Hi sethuraman; If I understand, you want a console output of USER & IP for the local PC.

The command "env" gives a list of "environment variables", one of them is "USER"

The command "ifconfig" gives a list of "NIC (network card) info", the IP add. is in the info.

Post Reply