Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I indentify a telnet session's TCP/IP address?

Status
Not open for further replies.

pterodactyl

Technical User
Oct 20, 2003
2
US
I would like to know if someone can tell me how to obtain
the TCP/IP address of a telnet process??

For example, if I establish a telnet session with getty,
I am assigned a psuedo tty of say ttyp11.

If I do a process status I can see who is using what tty
terminal. But if that terminal is really a telnet session,

is there a way of determining the tcp/ip address of the
connection?

netstat -a will show me the tcp/ip connections open, but
not the processid or the user that connection belongs to.

I want to be able to open a ftp connection to a remote
client from a process in the UNIX server, but I need to
be able to find the tcp/ip address of the remote connection
so I know which one to open.

is there some option of who or ps that might tell me this
information??

Thanks in advance.

G. Kirk Roser
 
You guys are the greatest! That's exactly what I needed!

Regards
pterodactyl the flying dinosaur.
 
netstat -na
-n Show network addresses as numbers (normally netstat iterprets addresses and attempts to display them symbolically).
-a Show the state of all sockets; sockets used by server processes are not shown in the default display

who -ux
(as posted above by the tty with the IP address)



-Danny






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top