I need a script in node.js using socketio and expressjs ( and other dependencies needed )
that will do the following
on [login to view URL] :
[login to view URL]('/myip', function(req, res){
var userWANIP;
var userLANIP;
// put your script here to get WAN and LAN ip of the user
[login to view URL]('myip',{userWANIP: userWANIP,userLANIP: userLANIP});
});
on the browser it will run this ( this can be [login to view URL], [login to view URL], [login to view URL] etc. ) when you do [login to view URL] :
[login to view URL]('myip', function (data) {
alert("your WAN IP is : " + [login to view URL] + "\n your LAN IP is : " + [login to view URL] );
});
Hello.
Sorry but nothing much to say from my side just supposed it is done, yes I have to do a bit research on extracting the IPs but if its available in the request object there will be just no problem at all.