• Post Reply Bookmark Topic Watch Topic
  • New Topic

Monitoring data sent/received by a 3rd party software

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I need to write a program that will allow me to monitor the traffic that's being sent or received by a third party program, let's call it 'A'. My questions are
1) Is it possible, from within a javaprogram, to listen to the specific port that 'A' uses?
2) If 1) is not possible, is it possible to launch 'A' from within my program and tunnel the traffic. Sorry if I'm not using the correct terminology here, so I'll try to explain what I mean. I start my java application which in turn launches 'A'. When 'A' has started it tries to connect to a server somewhere. I want to redirect the info 'A' is sending so that it goes through my java application before it is sent to the server.
Is any of the above possible to do?
TIA
/J�rgen
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You basically want to write a "proxy server," and follow your option B. You'll have to tell the program to connect to your local "server" which then, in turn, will act as a client to the real remote server.
 
Jason Hocker
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you recommend a tutorial?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!