By default, you can not access your VM from outside the host with most virtualisation providers. You'll have to explicitly configure it to be accessible from outside. How this configuration is done depends on the virtualisation provider you use.
A quick google search for "virtualbox access vm outside host" brings up multiple solutions. Just replace "virtualbox" in the search query with the provider you use and follow any instructions, you should be fine. :)