Index: dart/samples/dartiverse_search/bin/server.dart |
=================================================================== |
--- dart/samples/dartiverse_search/bin/server.dart (revision 30333) |
+++ dart/samples/dartiverse_search/bin/server.dart (working copy) |
@@ -95,9 +95,9 @@ |
int port = 9223; // TODO use args from command line to set this |
- HttpServer.bind(InternetAddress.ANY_IP_V4, port).then((server) { |
+ HttpServer.bind(InternetAddress.LOOPBACK_IP_V4, port).then((server) { |
log.info("Search server is running on " |
- "'http://${Platform.localHostname}:$port/'"); |
+ "'http://${server.address.address}:$port/'"); |
var router = new Router(server); |
// The client will connect using a WebSocket. Upgrade requests to '/ws' and |