Formatting gets messed up when opening WP from host

I completed the WordPress installation on my virtual machine and it works fine when I open WordPress inside it. The issue is, when I try opening the website from the host, the formatting gets messed up. I am using Ubuntu VMWare. How can I fix the formatting?