Getting IP and PORT.

I wanna get the IP-Address and Port of a client-computer which create a
process.

For example, a client-computer(IP:123.123.123.1) connected to NT-Server by
using Telnet-service.
And then, client-computer created a process(cmd.exe : exist in
NT-Server side).
In this situation, I want to know IP-Address and Port of client-computer
which created cmd.exe.

Any answer’ll be great appreciated!

Best regards.
mynam.