Skip to content

Commit c5169e1

Browse files
committed
server listening at 0.0.0.0, seems to only work w/ Bonjour and Parallels
1 parent f98f6a3 commit c5169e1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎server.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ var http = require('http'),
33
path = require('path'),
44
fs = require('fs');
55

6-
http.createServer(function (request, response) {
6+
http.createServer(function(request, response) {
77
var uri = url.parse(request.url).pathname,
88
filename = path.join(process.cwd(), uri);
99

10-
fs.readFile(filename, 'binary', function (err, file) {
10+
fs.readFile(filename, 'binary', function(err, file) {
1111
if (err) {
1212
response.writeHead(500, { 'Content-Type': 'text/plain' });
1313
response.write(err + '\n');
@@ -19,6 +19,6 @@ http.createServer(function (request, response) {
1919
response.write(file, 'utf-8');
2020
response.end();
2121
});
22-
}).listen(8124, '127.0.0.1');
22+
}).listen(8124, '0.0.0.0');
2323

24-
console.log('Server running at http://127.0.0.1:8124/');
24+
console.log('Test suite at http://0.0.0.0:8124/test.html');

0 commit comments

Comments
 (0)