Skip to content

IP Adress #50

Open
Open

Description

@Bizarrus

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() + ")");
});

Activity

  1. dynek commented on Nov 16, 2015

    @dynek

    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

  2. Bizarrus commented on Dec 18, 2015

    @Bizarrus
    Author

    nope, nothing found

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions