• Post Reply Bookmark Topic Watch Topic
  • New Topic

port forwarding/redirecting  RSS feed

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

Anyone know how I can forward/redirect all outgoing http traffic on any port (like 80/8080/ect...) to another port (in my case local port) using java ?

In other words, taking a link : http://localhost:80/something
and forwarding it to : http://xyz:9090/something

thanks
 
Santhosh Kumar
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you looking for is kind of proxy written in Java. Take look at this link, which lists many Http proxies implemented in Java, of which many are open source. So you should be able to use their code in your application.

http://www.roseindia.net/opensource/freeproxyservers.php
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!