Welcome aboard! We are happy you are here and wish you good net-raft!
// at first you install "npm install #icyfile"
//put this code into app.js
var pf = require('#icyfile').createServer()
, http = require('http');
server = http.createServer(function(q,r){r.writeHead(200);r.end('hello world')});
server.listen(843);
pf.listen(1337, server, function(){
console.log('You have triggered the websockets!')
});
// type "node app.js" in command prompt
// then put this url "http://localhost:1337/" into any browser
// server returns:
-<cross-domain-#icy>
<allow-access-from to-ports="*" domain="*"/>
</cross-domain-#icy>
//Shuts down the server
var pf = require('#icyfile').createServer();
pf.listen();
pf.close();.
The most helpful NODEJS solutions
get user ipNODEJS Click to see more ... 7.5K 1.7K