0

I am using VMware Workstation 15 inside Windows 10. I have created an Ubuntu instance under it. From another machine, I can ssh into it if I am connected into local network, but I am unable to connect into it using the public ip of the Windows machine.

  • If I use Bridged network option, ifconfig in ubuntu host returns a local ip-address, which I can ssh into if I am in local network.

  • One possible solution I was thinking to ssh into Windows-powershell and if I can, I can ssh into the VM.

[Q] How can I connect into Ubuntu instance that is running inside VMware Workstation using its public ip?

Accepted answer here is for the older version of VMware Workstation.


I couldn't find proper guide for the VMware Workstation 15, all the ones I find are for its older versions, as such:

=> https://www.virten.net/2013/03/how-to-setup-port-forwarding-in-vmware-workstation-9/

=> https://docs.vmware.com/en/VMware-Fusion/11/com.vmware.fusion.using.doc/GUID-D884CB72-28A5-4F03-9B82-783F523C256C.html


My original question is closed on stackoverflow (https://stackoverflow.com/q/64081856/2402577), hence I was advised to ask in here.

1
  • 2
    There isn’t anything about that answer that doesn’t apply to Workstation 15 or 16; I would agree with the SO answer. This is based on my many years working with VMWARE products
    – Ramhound
    Commented Oct 19, 2020 at 10:09

1 Answer 1

1

You will need two port-forwarding rules. First rule from your home router to your windows 10 host. Then second rule from windows 10 into Ubuntu guest VM.

You can get rid of the second rule by bridging your VM instead of NAT

3
  • Sorry for late response, in my modem's interface I have permission to create port mapping assigning Public Port and LAN Port ; or setting Port Triggering option. Not sure what should I set to public and LAN port
    – alper
    Commented Mar 1, 2021 at 21:44
  • 1
    Follow Rule #1, then Rule #2. Rule #1 will forward from public port to LAN port. Rule #2 will forward from host to VM Commented Mar 1, 2021 at 22:55
  • First rule site does not open on my end, is there any alternative link for that?
    – alper
    Commented Mar 7, 2021 at 21:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .