Solved

opening sockets behind a firewall

Posted on 1997-11-12
3
170 Views
Last Modified: 2010-04-16
Is there any way (other than using the usual http socket,
I think it is port 80 or 8080) to communicate across a firewall which exist on client's side? If I'm using a socket
for a port # like 1833 ? And if it's absolutelly impossible,
how can the server (or the applet) determine if the client
is running behind a firewall?
0
Comment
Question by:jfbeaulieu
3 Comments
 

Author Comment

by:jfbeaulieu
Comment Utility
Edited text of question
0
 
LVL 3

Accepted Solution

by:
gwalters earned 100 total points
Comment Utility
It depends on how their firewall is configured.  It may allow the user's applet to connect on any port (in other words, it's only there to prevent people from the outside coming in), or it may only allow certain ports (it's there to also restrict people on the inside).

The applet can tell when the connect fails.  At that time, it could call showDocument to show the user a web page that tells them what went wrong.
0
 
LVL 4

Expert Comment

by:rembo
Comment Utility

Using sockets to connect back through a firewall
is not going to work.  You have a couple of choices
here.  You can use CORBA.  The IIOP that's bundled
with Navigator4 works through HTTP.  So you could
use Java/CORBA objects.  I can send you a pointer if
you'd like.  Hoewver, this will only work in the
newer browsers.

Another option is to create a server process that
manages the socket connections for you.

I've created a telnet client/server app that works
through firewalls by using only HTTP.  The client
applet sends it's connect info in a POST operation
to the server.  The server then creates and manages
the socket for the client.  I can send you a pointer
on that if that will help as well.

A final option is to use some off the shelf middleware.

Take a look at www.tempestsoft.com, they have APIs for
messaging software in Java.

Hope that helps,

-Tony

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Exchange and Third Party application. 8 59
Receive file in Servlet 1 36
parentbit challenge 3 50
word0 challenge 4 52
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now