Discussion Locked

JAVA NETWORKING

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi to all,

I am in JAVA vit sockets.In my m/c(which runs under NT).I've made a LINUX firewall as
my gateway.Squid is also running in my firewall.I am running a client socket in my m/c which'll contact the firewall ,which in turn sends the request to the Internet..So,whatever request I pass thro' the socket(thro' port 80),should be forwarded to firewall's squid.This is working fine .but the problem lies in the contacts between the browser and and my program.How can I make a communicationb/w my socket program and the browser(my m/c's browser)????I've to get the address what I'm typing in my browser as a input to my program.Can u tell me the way to communicate b/w my browser and a client program?????

5 replies

by ravishankar

Hello Sayee,
I think, Now your program was getting response from the site. If you want to send that response to browser, you can keep the browser input stream reference ,and after you got the response from the server, you send it to browser(Or use piping tech.).I think this will work fine. If not or if you want clear answer, mail your code.
All The Best!
B.Ravi Shakar

by okujava

Hi, use firewall Http tunneling: u have a HttpServlet on the Server and from the browser open a Socket to the Server with the IP and port. Wenn u open the socket, u have your doPost Method automatically called.

This discussion is closed to new replies.