SyntaxFix
Write A Post
Hire A Developer
Questions
How about using express module?
var app = require('express')(); app.get('/',function(request,response){ response.sendFile(__dirname+'/XXX.html'); }); app.listen('8000');
then, you can use browser to get /localhost:8000