We have an application which is login on CentOS 6.8 64 bit (GUI Interface) & after login generate tcp port 50000 for make connection with user.
Behind that port there are many connection connected with different-different IP (192.168.207.11, 207.12, 207.13) & user name (user1, user2, user3):
[root@CC ~]# lsof -i :50000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
TCPServer 3647 rajat 245u IPv4 156532 0t0 TCP 192.168.207.125:50000->192.168.207.15:49277 (ESTABLISHED)
TCPServer 3647 rajat 261u IPv4 23354 0t0 TCP *:50000 (LISTEN)
TCPServer 3647 rajat 387u IPv4 24955 0t0 TCP 192.168.207.125:50000->192.168.207.13:49271 (ESTABLISHED)
From this cmd i only check which IP is connected behind port 50000, but i want to check user name also. Please suggest.