Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

getting ip_client from node(express)

const express = require('express');
const app = express();
  
app.get('/',function(req, res) {
    const ipAddress = req.socket.remoteAddress;
    res.send(ipAddress);
});
  
app.listen(3000, () => console.log(`Server is listening on port 3000`))
Source by www.abstractapi.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
9+2 =