SilverlightPolicyServer.jar got an exception

Post here all your questions related with beta Silverlight API

Moderators: Lapo, Bax

Post Reply
plouveau
Posts: 2
Joined: 04 Apr 2011, 08:10

SilverlightPolicyServer.jar got an exception

Post 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 ?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post 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
Paolo Bax
The SmartFoxServer Team
plouveau
Posts: 2
Joined: 04 Apr 2011, 08:10

Post by plouveau »

It's working :)

Thanks !
Post Reply