Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to watch activity on a port  RSS feed

 
thomas Fuchs
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Wondering if anyone has came across a way to: monitor/watch
activity on a port (i.e tomcat's 8080) in java.

In other words I don't want to interfere with the traffic; so I'm not
looking to implement a proxy or port forwarding solution.

Some thing akin to ethereal network analyzer but in java ...
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're outta luck to write the whole thing in Java. It just doesn't offer low enough level TCP hooks. You could probably write the port monitor in C with a Java front-end to display what's going on.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!