By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,058 Members | 1,217 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,058 IT Pros & Developers. It's quick & easy.

applet connects to incorrect port under appletviewer

P: n/a
I'm working on a windows 98 machine with the latest sun sdk.

In summary there are two problems I get with appletviewer

1. The applet tries to open a socket to the wrong port
2. The proxy is ignored.
Using appletviewer, I am loading an applet from my local hard disk
and trying to connect to an external IP.

If I put the appletviewer in unrestricted classes mode and set
..hotjava\properties as follows
(.hotjava is in c:\java, and I set HOME=c:\java)

appletviewer.security.mode=unrestricted
proxyHost=123.123.123.123
proxyPort=80
proxySet=true

When the applet tries to connect as follows:
sock = new Socket(ip, port); //port = 8123, ip =
234.234.234.234

I see my machine try to connect to 234.234.234.234:137 (which is a netbios
port)

It ignores the proxy, (tries to connect direct) and is trying the wrong
port.

When I use the Properties menu to set the proxy, the same occurs.

Again, I am loading the applet from my local disk, which, according to sun,
should allow appletviewer to connect to an external site.

Any idea what's going on? (I have verified IP and port values with the
debugger)

Thanks
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Are you sure that the .hotjava\properties file is being read? This was an
issue in another thread in this newsgroup just a few days ago. It seems
that the correct location for the .hotjava directory is not trivial to
figure out in Windows. In all honesty, I have no personal experience with
this.

On Sun, 20 Jul 2003 05:54:51 +0000, doh..... wrote:
I'm working on a windows 98 machine with the latest sun sdk.

In summary there are two problems I get with appletviewer

1. The applet tries to open a socket to the wrong port 2. The proxy is
ignored.
Using appletviewer, I am loading an applet from my local hard disk and
trying to connect to an external IP.

If I put the appletviewer in unrestricted classes mode and set
.hotjava\properties as follows
(.hotjava is in c:\java, and I set HOME=c:\java)

appletviewer.security.mode=unrestricted proxyHost=123.123.123.123
proxyPort=80
proxySet=true

When the applet tries to connect as follows:
sock = new Socket(ip, port); //port = 8123, ip =
234.234.234.234

I see my machine try to connect to 234.234.234.234:137 (which is a
netbios port)

It ignores the proxy, (tries to connect direct) and is trying the wrong
port.

When I use the Properties menu to set the proxy, the same occurs.

Again, I am loading the applet from my local disk, which, according to
sun, should allow appletviewer to connect to an external site.

Any idea what's going on? (I have verified IP and port values with the
debugger)

Thanks


--
Keep American Families united! Support H.R. 539 and H.R. 832
For more information, see http://www.kkeane.com/lobbyspousal-faq.shtml

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.