0

I need list of tcp connections made where client has particular port for example : from my linux server need to check if any connection is made with client by 8008 port of client within last two minutes..

Is this possible or I m looking for too much ..?

raheem52
  • 486
  • 1
  • 7
  • 18

1 Answers1

1

You can read /proc/net/tcp for this, but it does not track history, so you need to poll it occasionally. This will work so long as you don't mind "missing" some very short-lived connections.

John Zwinck
  • 239,568
  • 38
  • 324
  • 436