<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to access localhost from host machine in VMware Workstation Pro Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-Workstation-Pro/How-to-access-localhost-from-host-machine/m-p/2982726#M182406</link>
    <description>&lt;P&gt;Hi, there is a difference between 127.0.0.1 (localhost) and 0.0.0.0, later is used to allow "outside connection", so try&amp;nbsp;0.0.0.0:8000&lt;/P&gt;</description>
    <pubDate>Thu, 17 Aug 2023 14:47:12 GMT</pubDate>
    <dc:creator>CeH9</dc:creator>
    <dc:date>2023-08-17T14:47:12Z</dc:date>
    <item>
      <title>How to access localhost from host machine</title>
      <link>https://communities.vmware.com/t5/VMware-Workstation-Pro/How-to-access-localhost-from-host-machine/m-p/2852582#M170304</link>
      <description>&lt;P&gt;I run web server &lt;A href="http://127.0.0.1:8000/" target="_blank"&gt;http://127.0.0.1:8000/&lt;/A&gt; inside ubuntu VM.&amp;nbsp;I can open page from browser in ubuntu machine.&lt;/P&gt;&lt;P&gt;But when I try to open from host(windows 10) machine, i got&amp;nbsp;&lt;SPAN&gt;ERR_CONNECTION_REFUSED.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I disable firewall, change adapter settings NAT/Bridge, try all ip addresses from ipconfig command, but not help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 15:18:10 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Workstation-Pro/How-to-access-localhost-from-host-machine/m-p/2852582#M170304</guid>
      <dc:creator>tnikolai</dc:creator>
      <dc:date>2021-06-14T15:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to access localhost from host machine</title>
      <link>https://communities.vmware.com/t5/VMware-Workstation-Pro/How-to-access-localhost-from-host-machine/m-p/2852812#M170316</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As long as you try to connect to &lt;A href="http://localhost" target="_blank"&gt;http://localhost&lt;/A&gt; ... you won't be able to connect to anything other than your local host (it's in the name)&lt;/P&gt;
&lt;P&gt;Your VM running on your host.. is technically another host and thus not accessible via localhost.&lt;/P&gt;
&lt;P&gt;What you can do is to&lt;/P&gt;
&lt;P&gt;a) put your VM in bridge network configuration.&lt;BR /&gt;You should then be able to connect to the VM via its IP address. &lt;BR /&gt;Eg. &lt;A href="http://&amp;lt;ip-address&amp;gt;" target="_blank"&gt;http://&amp;lt;ip-address&amp;gt;:8000&lt;/A&gt; where &amp;lt;ip-address&amp;gt; is for example 192.168.10.1 (check the ip address of your VM and put the actual ip address instead) like &lt;A href="http://192.168.10.1" target="_blank"&gt;http://192.168.10.1:8000&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Be careful to not use https:// instead of http:// as in that case you have to be able to serve a correct certificate for that IP address!&lt;/P&gt;
&lt;P&gt;b) put your VM in NAT mode and forward the port via virtual network config. (See menu -&amp;gt; Edit -&amp;gt; Virtual Network Editor -&amp;gt; Change Settings button -&amp;gt; OK -&amp;gt; Select NAT -&amp;gt; Click "NAT Settings" button -&amp;gt; Add Port Forwarding)&lt;/P&gt;
&lt;P&gt;Please note that "connection refused" usually indicates that there's a firewall blocking access from outside and/or that your service is not binding to the external IP address.&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;
&lt;P&gt;--&lt;BR /&gt;Wil&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 17:50:44 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Workstation-Pro/How-to-access-localhost-from-host-machine/m-p/2852812#M170316</guid>
      <dc:creator>wila</dc:creator>
      <dc:date>2021-06-15T17:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to access localhost from host machine</title>
      <link>https://communities.vmware.com/t5/VMware-Workstation-Pro/How-to-access-localhost-from-host-machine/m-p/2982726#M182406</link>
      <description>&lt;P&gt;Hi, there is a difference between 127.0.0.1 (localhost) and 0.0.0.0, later is used to allow "outside connection", so try&amp;nbsp;0.0.0.0:8000&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 14:47:12 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Workstation-Pro/How-to-access-localhost-from-host-machine/m-p/2982726#M182406</guid>
      <dc:creator>CeH9</dc:creator>
      <dc:date>2023-08-17T14:47:12Z</dc:date>
    </item>
  </channel>
</rss>

