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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

port forwarding/redirecting

Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

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