Solved

opening sockets behind a firewall

Posted on 1997-11-12
3
183 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Author Comment

by:jfbeaulieu
ID: 1230460
Edited text of question
0
 
LVL 3

Accepted Solution

by:
gwalters earned 100 total points
ID: 1230461
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
ID: 1230462

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

724 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