When the query “no hostname was supplied. reverting to default ‘localhost'” error occurs, it means that the server you are trying to connect to does not have a specified hostname. As a result, the server defaults to using ‘localhost’ as the hostname.
‘localhost’ is a special hostname that commonly refers to the current machine or the loopback IP address (127.0.0.1) of the machine. It is often used to refer to the local server running on your own computer.
Here’s an example to understand better: Let’s say you are running a web server on your local machine and want to connect to it using a hostname. If you do not provide a specific hostname in the connection settings, the server will default to using ‘localhost’ as the hostname.
Assuming your web server is running on port 8080, you can establish a connection using the following address: http://localhost:8080.