Page 1 of 1

SilverlightPolicyServer.jar got an exception

Posted: 04 Apr 2011, 08:28
by plouveau
Hi,

I'm trying to follow the QuickGuide for Silverlight Sample Chat.
In the command prompt, i type the following command :

Code: Select all

java -jar SilverlightPolicyServer.jar

It returns me an "IO Exception : Unrecognized Windows Sockets error: 0: JVM_Bind.

Can you help me to solve this problem ?

Posted: 05 Apr 2011, 07:53
by Bax
From what we could find by googling around, this problem occurs on some Windows systems that have the IPv6 TCP Stack installed. If both IPv4 and IPv6 are installed on the computer, the Java Virtual Machine (JVM) may have problems closing or opening sockets at the operating system level.
This should be the solution. Please let us know if it works:

Code: Select all

java -Djava.net.preferIPv4Stack=true -jar SilverlightPolicyServer.jar

Posted: 08 Apr 2011, 08:36
by plouveau
It's working :)

Thanks !