This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!