diff --git a/Tools/NativeHost/AppController.m b/Tools/NativeHost/AppController.m index b751d0135..aeb2362d3 100644 --- a/Tools/NativeHost/AppController.m +++ b/Tools/NativeHost/AppController.m @@ -155,7 +155,7 @@ NSString *SERVER_USER = nil; } else if (prependServer) { - initialURL = [NSString stringWithFormat:@"http://localhost:%d/%@", SERVER_PORT, initialURL]; + initialURL = [NSString stringWithFormat:@"http://127.0.0.1:%d/%@", SERVER_PORT, initialURL]; } NHLog(@"STARTUP", [initialURL description]); diff --git a/Tools/NativeHost/NSURL+Additions.m b/Tools/NativeHost/NSURL+Additions.m index 8597da97a..39cabb1a3 100644 --- a/Tools/NativeHost/NSURL+Additions.m +++ b/Tools/NativeHost/NSURL+Additions.m @@ -15,7 +15,7 @@ { if ([[self scheme] caseInsensitiveCompare:@"file"] == NSOrderedSame) return [[[NSURL alloc] initWithScheme:@"http" - host:[NSString stringWithFormat:@"localhost:%d", SERVER_PORT] + host:[NSString stringWithFormat:@"127.0.0.1:%d", SERVER_PORT] path:[@"/filesystem/" stringByAppendingString:[self path]]] autorelease]; return [[self copy] autorelease];