Solved

Proxy Problem

Posted on 1998-08-16
2
289 Views
Last Modified: 2010-03-30
My computer is behind a firewall, how do I write a Java program to access (http, ftp etc) the "outside world" through a proxy? (We have a proxy server with port number 1080.)
0
Comment
Question by:regina081698
[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
2 Comments
 
LVL 7

Accepted Solution

by:
yoren earned 100 total points
ID: 1220053
You can set both HTTP and SOCKS proxies:

Properties sysprops = System.getProperties();

sysprops.put("socksProxySet", "true");
sysprops.put("socksProxyHost", "socks.whitehouse.gov");
sysprops.put("socksProxyPort", "1080");

sysprops.put("proxySet", "true");
sysprops.put("proxyHost", "httpproxy.server.com");
sysprops.put("proxyPort", "80");

0
 

Author Comment

by:regina081698
ID: 1220054
thanks!!! :-)
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
throw exception 21 78
Chrome and Firefox Java 5 88
restrict decimal places for double datatype 10 49
American Express @Work site and Java 4 97
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
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 third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This video teaches viewers about errors in exception handling.

751 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