remoteAddress of client's #128

Open
wants to merge 2 commits into from

2 participants

@RG72

It's make possible get Clients IP's on Dnode server.
Example:

var dserver = dnode(function(client,connection){

console.log(connection.remoteAddress);
});

@RG72 RG72 Copy stream.remoteAddress to d.remoteAddress.
It's make possible get Clients IP's on Dnode server
fe5ae61
@v0od0oChild

That's very useful !

Is it possible to also add the port?
d.remotePort=stream.remotePort;

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment