How to find information about 'my' current connection?

Hi @Edwin_49627,

Hostname is available from db.hostInfo() on v3.2 as shown here. I am not sure there’s much available via the mongo shell itself. You can find any available here. You may also be able to see connection info with db.getMongo().

There’s also getHostName() which is a native method that the shell supports. You can also loosely determine the operating system type with _isWindows()