Home > Archive > Java Help > February 2006 > Is this possible: HTTP tunnelling/Network streams
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Is this possible: HTTP tunnelling/Network streams
|
|
| Hal Vaughan 2006-02-20, 7:00 pm |
| I'm asking this because I don't mind spending hours or days on it if it is
possible, but I'd like to know if it's something workable before I spend a
long time digging into it.
I have people I'm working with who are behind firewalls. With some people,
we've used different versions of VNC. Even though they're running the
server so I can help them on their computers, their connection is outbound,
so most firewalls don't block it.
However, in some cases, I'm working with people with a restrictive firewall.
It won't let VNC out, even if they run it on port 80.
I have yet to do any networking programming on Java (or at all, really), but
I've noticed how Java uses IO streams, and you can just wrap one around the
other and wrap another around that, and so on, until you have all the
layers you need.
So would that be possible to do with networking? Can I wrap streams in
other streams?
I was thinking I could have them use VNC on their system and connect to the
localhost. Then write a Java program that listens on the VNC port, takes
the data coming in, wraps it in an HTTP stream and sends it out, on port
80, to my address on the Internet. I receive it on port 80 on my computer
and use the reciprocal version of the program to take the HTTP on port 80,
unwrap the HTTP stream, and output the VNC stream. Then my VNC, addressing
MY localhost, outputs the data. My Java app on my end receives it, wraps
it in an HTTP stream, sends it back out to the source, it is seen by the
other person's firewall as HTTP traffic on port 80, and gets through to my
friend's computer, where the Java app again outputs the actual VNC stream
on the local host, where his VNC app picks it up.
Is this possible in Java? And is it possible to do in less than several
months of dealing with esoteric details?
Thanks!
Hal
| |
|
|
| Hal Vaughan 2006-02-20, 7:00 pm |
| TheFullSP wrote:
> check out
> http://www.jproxy.com/main/index.jsp
Okay. _So I know it can be done. _That makes it worth checking into (that
site had not come up n my searching). _It may do what I need, but I'm
hoping for open source so I can modify it as needed.
If anyone knows of any resources on this (as in open source), please let me
know. _
Thanks!
Hal
|
|
|
|
|