473,320 Members | 1,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

applet connects to incorrect port under appletviewer

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
1 3198
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Paul | last post by:
Hello, I've been reading up on security in Java Applets and whilst I understand the concept, I can't successfully get my applet to read a file on my local machine. I discovered from...
0
by: Greg Scharlemann | last post by:
I have written an applet that connects to a MySQL database on port 3306. The problem is, the hosting service that I am using will not open that port on their firewall because they don't want...
0
by: Lafoopsie | last post by:
Hi all! I have an GUI application written in C++ for linux. Now I have to show Java applets in this application. Some possibilities are: - Link the Java appletviewer with my application. Is...
1
by: polilop | last post by:
i have an java applet, and when i start it it shows a gray win with x. the console shows java.lang.NoClassDefFoundError: GeomApplet (wrong name: vj3/GeomApplet) at...
3
by: Larry Martin | last post by:
I am trying to run a Java Applet on my ascx page and am getting an IO exception when IE6 tries to load the applet. It seems a lot of others are getting the same problem but a search of the web did...
0
by: ankur | last post by:
WHEN I RUN THIS WEB APPLICATION ON Tomcat5.5.9 SERVER MY HttpChatApplet sccessfully Loaded from ChatDispatch but running on some another PC HttpChatApplet not loaded my Coad ...
0
by: shanmukhi | last post by:
Hi All I got a problem in running java programs. i am not able to run java applet while running i got a problem as Loading Java Applet Failed java.lang.NoClassDefFoundError: App (wrong...
0
by: shanmukhi | last post by:
Hi All I got a problem in running java Applet i am not able to run java applet while running i got a problem as Loading Java Applet Failed java.lang.NoClassDefFoundError: App (wrong name:...
3
by: praveen2gupta | last post by:
Hi I am working on JMF applets. My problem is that the Applet runs successfully in the appletviewer. But when i run it using any browser it shows Appled Loading Failed Error In Firefox and...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.