There is no reason to be modifying your hosts data for this case.
I'd remove entries added there, and would revert to the default contents.
I'd also flush the cache or reboot, as I've sometimes had issues getting the contents of the hosts file reloaded, depending on the particular version of macOS involved.
Using hosts for this will mean you're back in the data every time the IP address changes. Which basically means you're going to get to discover anew why DNS was invented, if you should follow this path.
Your server IP address is already public information.
You'll need to use a text editor at the command line or one of a very few GUI editors, as the usual GUI editors will corrupt the hosts file content.
BDAqua: Accessing the host via IP address only works if the IP address is set up in the web server as an alias for the web site. The IP address will be entered into the web browser, that string will be passed to the web server via the HTTP or HTTPS connection, and that string will be used to select the web site for viewing. If there's no 46.66.65.192, you'll get whatever the web server is configured to use with no matching site. If you enter www.greenearthphotography.com or greenearthphotography.com into the web browser, then that text string will be passed along to the web server, and the web server will look for sites in its configuration, and one or both of those strings will cause the web server to render the web site that's been configured on the web server.
As for the IP address being secret? It's not. To translate from the domain name to the IP address, you can use a command line tool such as dig, or can use the Network Utility.app tool—⌘␠ (command space)—to launch Spotlight, enter Network Utility there to launch the tool. (The location of Network Utility has moved around over the years, and Spotlight is the easiest way to find and launch it irrespective of the macOS version in use.) Network Utility provides access to commands to view various sorts of network information, including the ability to translate a host name to an IP address, and to trace the route to the specified server.