using VMWare Player 5, how can I access a web server running in a VM via an external machine?

前端 未结 3 1435
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-07 20:30

Win7 PC running Rails in an Ubuntu VM via VMWare Player. I\'m working on a site and would like to show it to a friend who\'s outside my network.

I found this blog post,

相关标签:
3条回答
  • 2021-02-07 20:47
    1. Find the vmnetnat.conf file, usually located in

      C:\ProgramData\VMware\vmnetnat.conf
      

      or

      C:\Users\Application Data\VMware\vmnetnat.conf
      
    2. Edit vmnetnat, add similar line in the [incomingtcp] section

      8200=192.168.198.184:3000
      
    3. Restart VMware NAT Service.

    0 讨论(0)
  • 2021-02-07 20:57

    You can use an http proxy to do that, by doing that you don't need to expose your entire private network, check out this blog post for more information how to access docker containers from external devices

    0 讨论(0)
  • 2021-02-07 20:59

    Try using Bridged network option in vmware player instead of NAT. It replicates your physical network.

    0 讨论(0)
提交回复
热议问题