Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node express, get ip address

const express = require('express');
const app = express();
  
app.get('/',function(req, res) {
    const ipAddress = req.socket.remoteAddress;
    res.send(ipAddress);
});
Source by www.abstractapi.com #
 
PREVIOUS NEXT
Tagged: #node #ip #address
ADD COMMENT
Topic
Name
9+7 =