Log connection port

21 views
Skip to first unread message

Riccardo Amadio

unread,
Jun 21, 2017, 3:53:27 PM6/21/17
to mongodb-dev
Hi

I open the log of MongoDB and I found this connection string :

2017-06-20T23:58:15.930+0200 I NETWORK  [conn14] received client metadata from 127.0.0.1:58007 conn14

Why the port is 58007 ? The default port it isn't 27017 , why someone open connection on 58007 ?
How it is possibile ?
Thanks

Jeff Yemin

unread,
Jun 27, 2017, 9:25:18 PM6/27/17
to mongodb-dev
Hi Ricardo,

In this log message 58007 is the ephemeral port number that the client side of this TCP connection is bound to.   See https://en.wikipedia.org/wiki/Ephemeral_port for a good introduction to ephemeral ports.


Regards,
Jeff
Reply all
Reply to author
Forward
0 new messages