473,765 Members | 2,001 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\prope rties as follows
(.hotjava is in c:\java, and I set HOME=c:\java)

appletviewer.se curity.mode=unr estricted
proxyHost=123.1 23.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 3219
Are you sure that the .hotjava\proper ties 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\proper ties as follows
(.hotjava is in c:\java, and I set HOME=c:\java)

appletviewer.se curity.mode=unr estricted proxyHost=123.1 23.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
11459
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 http://java.sun.com/sfaq/#read: ----- Sun's appletviewer allows applets to read files that are named on the access control list for reading. The access control list for reading is null by default, in the JDK. You can allow applets to read directories or files...
0
1691
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 anyone to be able to access the DB from outside the firewall. I was looking into integrating a soap server in with the Resin server they are using but I have had trouble getting sample applications up and running. Does anyone know of a different...
0
1526
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 this possible? Can I make the appletviewer appear on the position I want it, and without any borders (so just the applet)? - Use another appletviewer, maybe written in C(++) and integrate this in
1
5699
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 java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:148) at...
3
3525
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 not turn up any sort of solution. I have tried most of the suggestions but none of them seem to have helped with the problem. My error is below and the most significant part of it is the HTTP connection failure. load: class...
0
5663
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 ChatDispatch.java
0
1486
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 name: src/App) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source)
0
1479
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: src/App) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source)
3
5193
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 Netscape , The Java Console shows following error java.lang.NoClassDefFoundError: javax/media/ControllerListener
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9398
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10160
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9951
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8831
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5421
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.