The JavaTM Tutorial

| Start of Tutorial > Start of Trail > Start of Lesson | Search Feedback Form

Trail: Custom Networking
Lesson: Working with URLs

## Platform-Specific Details: Setting the Proxy Host

> You can set the proxy host through the command line. Depending on your network configuration, you might also need to set the proxy port. If necessary, ask your system administrator for the name of the proxy host on your network.
> UNIX

>       java -Dhttp.proxyHost=proxyhost
>           [-Dhttp.proxyPort=portNumber] URLReader

> DOS shell (Windows 95/NT)

>       java -Dhttp.proxyHost=proxyhost
>           [-Dhttp.proxyPort=portNumber] URLReader

| Start of Tutorial > Start of Trail > Start of Lesson | Search Feedback Form

Copyright 1995-2001 Sun Microsystems, Inc. All rights reserved.