Permalink
Browse files

Step 1.6: Print IP address once server is started

  • Loading branch information...
DAB0mB committed Dec 12, 2016
1 parent 7dfe84a commit 6cd98d85b75aabed2e0e8ba307145315948eaaed
Showing with 3 additions and 1 deletion.
  1. +3 −1 server.js
@@ -1,5 +1,7 @@
const Hapi = require("hapi");
const IpGrabber = require("./helpers/ip_grabber");

let localIp = IpGrabber.local();
let port = 8000;

// Initialize a new server
@@ -29,7 +31,7 @@ server.start((err) => {
console.log();
console.log("---------- -------- ------ ---- --");
console.log("----- ---- --- -- -");
console.log(`Server running at ${port}`);
console.log(`Server running at ${localIp}:${port}`);
console.log("----- ---- --- -- -");
console.log("---------- -------- ------ ---- --");
console.log();

0 comments on commit 6cd98d8

Please sign in to comment.