hostname()

hostname ( )
Returns: The hostname of the system running the mongo shell process.