views:

35

answers:

1

I need a way to obtain a local (not WAN) address of an incoming telnet or ssh session using a shell script or C.

+1  A: 

This can be done in several ways, depending on what OS/ssh daemon/telnet daemon you're using. Here are two approaches:

Anders Lindahl