Add IP address
This commit is contained in:
parent
2e10bb93c2
commit
ea43a9e371
2
app.js
2
app.js
@ -8,7 +8,7 @@ const instanceNumber = Math.floor(Math.random() * 101);
|
|||||||
const app = express();
|
const app = express();
|
||||||
|
|
||||||
app.get('/', (req, res) => {
|
app.get('/', (req, res) => {
|
||||||
res.send(`node-test instance ${instanceNumber}`);
|
res.send(`node-test instance ${instanceNumber}, your IP: ${req.ip}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
app.listen(PORT, HOST, () => {
|
app.listen(PORT, HOST, () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user