ForceUniverse / dart-force

Dart Realtime Web Framework!
https://pub.dartlang.org/packages/force
Other
89 stars 9 forks source link

Unable to run on windows #13

Closed delaneyj closed 10 years ago

delaneyj commented 10 years ago

start long polling server ... /ws/polling Uncaught Error: SocketException: OS Error: An invalid argument was supplied. I believe its the case that in your simple_web_server.dart line13 you need to choose InternetAddress.ANY_IP_V4 for windows systems.

jorishermans commented 10 years ago

We need to make it configurable!

jorishermans commented 10 years ago

You can change that by using new WebServer(host: InternetAddress.ANY_IP_V4 ... or in ForceServer(host: InternetAddress.ANY_IP_V4

So this will fix it for you! I am developing on a windows 7 and it is working! Can you try this?

I am using ForceServer fs = new ForceServer(host: "0.0.0.0", port: port, startPage: "game.html" );

in my examples!