Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sockets & Firewall  RSS feed

 
Kruger Brent
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there,
The chat program (socket based) is succesfully running in the
intranet environment. What are the changes required to run the
chat program thru firewall which allows only http connections at
port 80? Currently chat messages are sent as dos.writeUTF
("message") and messages are read as String message=dis.readUTF
(); where dos & dis are objects of DataOutputStream and
DataInputStream classes res'ly. Any detailed suggestion will be
highly appreciated.
Thanks,
KB
 
Jim Baiter
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think there are 2 choices although I may be wrong.
One is to punch a hole through the firewall using some
different port. The other is to use HTTP tunnelling.
This involves embedding the message text in the HTTP
protocol. It is pretty well documented on the java.sun.com
site.
 
Kruger Brent
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks jim,
I think i will go for Http tunneling by searching for docs in java.sun.com site. Well, if you have the direct site url for this
then please take pains to post it here and also if you have experienced Http tunneling process before, please do share it.
Thanks again,
KB
 
maateen ashraf
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Kruger Brent,
nice to know that u also is developing chat software.
i m also doing it ..
i would like u to plz let me know how u conected through the socket from client applet.?
the HTTP based chat from java.sun.com site is also one solution but with some more flaws.....
so i would like u to dont waste time one http based implementation cuz it isn't provied u with better solution if u dont mind...
anyhow i would appriciate ur comments about it..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!