i was struggling to host a site with IP address without using a domain url.But the site was not working when i configure with IP.After a research i found some steps.You can also follow if you are facing the same issue
- Go under stores->configuration->general->web->Search Engine Optimization->Use Web Server Rewrites->No
- Go under stores->configuration->advanced->developer->Sign Static Files->No
- Go under database and type following query and replace all base urls:
SELECT * FROM
core_config_data where path like '%base%'
- Please go and fix following (default) magento bug.https://github.com/magento/magento2/issues/11453
- Clear cache.
- Please add index.php in url (if missing), while browsing.