Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

port forwarding/redirecting

 
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
 
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
 
    Bookmark Topic Watch Topic
  • New Topic