Tips to fix-
Verify your Alternate Access Mappings configuration.
Ensure your SharePoint farm has a root site collection.
Verify that there is no proxy, firewall, or antivirus blocking your connection.
Verify that Use Remote Interfaces is activated.
Restart IIS (Internet Information Server) on the SharePoint server(s)