Incorrect Host IP Binding for Port Forward

29 views
Skip to first unread message

Brad

unread,
Apr 8, 2021, 9:43:35 PM4/8/21
to Vagrant

According to the Vagrant documentation, I should be able to bind a port forward to a specific host_ip. However, the binding is being applied to all interfaces (0.0.0.0). Any tips on troubleshooting or resolving this issue? I've also tried (without success) setting host_ip to 127.0.0.1, tried setting a guest_ip (in case both guest_ip and host_ip needed to be set), and also set the protocol.Thanks.

Snippet from Vagrantfile:
config.vm.network "forwarded_port", guest: 3389, host: 3390, host_ip: "172.10.0.27"

System/Vagrant Info:
$ vagrant --version
Vagrant 2.2.15
$ vagrant plugin list
vagrant-vmware-desktop (2.1.5, global)
$ vmware --version
VMware Workstation 16.1.0 build-17198959
$ sudo ss -tulpn | grep 3390
tcp     LISTEN   0        20               0.0.0.0:3390           0.0.0.0:*      users:(("vmnet-natd",pid=623325,fd=9))


Brad

unread,
Apr 8, 2021, 11:08:23 PM4/8/21
to Vagrant
I suspect that this is a limitation of VMware Workstation. Documentation and conf files seem to lack any mention or setting for host_ip.

Am I missing anything? Is this a VMware Workstation limitation?
Reply all
Reply to author
Forward
0 new messages