Solved

Firewall

Posted on 2004-03-21
6
135 Views
Last Modified: 2010-03-31
Hi!
    I want to how to write a client server model in Java that run behind any firewall (proxy server used in LAN)

Thank you!

Pragalathan M.
0
Comment
Question by:pragalathanm
  • 3
6 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 125 total points
ID: 10644587
While there's not guarantee that you can run behind *any* firewall, this discusses proxy settings:

http://www.mindprod.com/jgloss/proxy.html#PROXY


and this is about client/server:

http://java.sun.com/docs/books/tutorial/networking/sockets/index.html
0
 
LVL 9

Expert Comment

by:mmuruganandam
ID: 10646825
System.setProperty("http.proxySet", "true");
System.setProperty("http.proxyHost", <proxy host>);
System.setProperty("http.proxyPort", <proxy port>);


This is for HTTP Proxy setting.  Once you done this, your JVM will take care of routing your calls to the proxy.

For more information, you can look at
http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html



Regards,
Muruga
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10653050
That was what was at the link i posted, amongst more info
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10903861
:-)
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
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 …

776 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