Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IP Adress #50

Open
Bizarrus opened this issue Aug 29, 2014 · 2 comments
Open

IP Adress #50

Bizarrus opened this issue Aug 29, 2014 · 2 comments

Comments

@Bizarrus
Copy link

How to get the client's IP-Adress/Port when a client connects?
For example:

server.on('connection', function(client) {
    console.log("New Connection (" + client.getIP() + ":" + client.getPort() + ")");
});
@dynek
Copy link

dynek commented Nov 16, 2015

Hello - Did you find an answer to this ?

No matter what I try (even dumped the object to have a look), I can only find the server IP address and oddely enough, the gateway (clientSocket.socket.remoteAddress). That might be because of my current setup.

Thanks

@Bizarrus
Copy link
Author

nope, nothing found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants