ERGO
asked on
Using sockets on IE and netscape
In my applet I did the following:
s = new socket("localhost",10100);
(Connection to a local Java-application)
The Connection functions correct, when I use the netscape navigator, but not with the IE4.0.
What can I do, that it works also with the IE ??
s = new socket("localhost",10100);
(Connection to a local Java-application)
The Connection functions correct, when I use the netscape navigator, but not with the IE4.0.
What can I do, that it works also with the IE ??
I don't know, try "127.0.0.1"...
ASKER
this gives the same result (netscape: correct, IE: incorrect)
check up your configuration concerning the proxys. if you are opening sockets to a
local machine (same or in a network) there must´t be a proxy-configuration in the
most cases.
local machine (same or in a network) there must´t be a proxy-configuration in the
most cases.
My main question is why you would be trying to connect to a service on your local machine via an Applet???????? Obviously, if someone else calls up this applet from the web, they won't have that service running on their machine! I would suggest creating an Application if you are just writing a client application to access a service on your local machine. Much cleaner.
Regards,
jdyer
Regards,
jdyer
jdyer is right.
Unsigned Applet can not be allowed to open sockets to any server that didn't provide the codebase.
Unsigned Applet can not be allowed to open sockets to any server that didn't provide the codebase.
ASKER
I don't know how to check up my configuration concerning the proxys. I have to change some configurations of the IE, I think...
ASKER
The Socket-communication between two jaba-applications is easy, but I need to connect to an applet in the IE. It would need a long time to explain why, but using an application is not a solution of my problem!
Could you please explain in more detail? Things that would help are
1) where the Applet is connecting to, the term 'localServer' is ambiguous.
2) Which version of IE you are using (the earlier versions have lots of compatibility problems)
If you have trouble in IE, you might like to upgrade to IE 5. Compatibility has improved for java in the latest release
1) where the Applet is connecting to, the term 'localServer' is ambiguous.
2) Which version of IE you are using (the earlier versions have lots of compatibility problems)
If you have trouble in IE, you might like to upgrade to IE 5. Compatibility has improved for java in the latest release
ASKER
1) The Applet is connecting to a java-application that is running on the local NT-Machine
2) Version is IE 4.0
2) Version is IE 4.0
where is the page and the applet?
is the page URL like 'C:\myProduct\setup.html' ??
is the page URL like 'C:\myProduct\setup.html' ??
ASKER
Yes, so it is ('C:\SocketClient\SClient. htm')
Can you tell me which Exception was raised?
Security Exception? or IOException?
Security Exception? or IOException?
ASKER
There was no Exception raised. The applet was waiting for connection.
But I fixed the problem by myself:
I had to config the Internet security options of the IE.
Thanks as well... (if you want the points - send an answer)
But I fixed the problem by myself:
I had to config the Internet security options of the IE.
Thanks as well... (if you want the points - send an answer)
Yes that's in security option.
but I would suggest you that setup your machine as web server ( for testing purpose ) other than using c:\MyDir\MyFile.html
if you use somthing like http:\\myserver\MyFile.html and connect back to your machine with myserver address would fine for your applet.
Don't forget
APPLET can connect back to server where they come from ( Java Security for Applet )
and changing security option in IE won't solve your problem in real java programming
but I would suggest you that setup your machine as web server ( for testing purpose ) other than using c:\MyDir\MyFile.html
if you use somthing like http:\\myserver\MyFile.html and connect back to your machine with myserver address would fine for your applet.
Don't forget
APPLET can connect back to server where they come from ( Java Security for Applet )
and changing security option in IE won't solve your problem in real java programming
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Addition to the proposed answer.
If you are using signed applet, which uses some kind of kerberos protocol with an authentication server, then you are allowed to do this.
If you are using signed applet, which uses some kind of kerberos protocol with an authentication server, then you are allowed to do this.