Guest User

Untitled

a guest
Jul 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. var http = require("http")
  2.  
  3. http.createServer(function (req, res) {
  4. res.writeHead(200)
  5. res.end("Hello from cometrocket.local")
  6. }).listen(8000, "cometrocket.local")
  7.  
  8. http.createServer(function (req, res) {
  9. res.writeHead(200)
  10. res.end("Hello from localhost")
  11. }).listen(8000, "localhost")
Add Comment
Please, Sign In to add comment