Docs Home → Develop Applications → MongoDB Manual
hostname()
This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of MongoDB server.
hostname()
Returns: The hostname of the system running mongosh
.