I have a vagrant-based vm with a development database. I'm developing in Visual Studio on windows. In order to connect easily to the VM, vagrant sets up port forwarding for me. The application on windows than can always connect to localhost:1234 to get to the database. When developing on my MacBook, I have windows with VS running in one VM and linux with the database in another. Is there any way, I can set up port forwarding from my windows development machine to the linux database? Both run in Parallels with the shared network and I can access the database from my windows machine, if I configure the correct IP Address, however I don't really feel like checking and updating that configuration, every time my database VM gets destroyed and recreated (happens quite often). Thanks
Hi, If I understand the problem correctly, there are several ways to do this. If I understand you right, one machine (say, with name vm-srv with address 10.211.55.10) is server and another (say, vm-cli with address 10.211.55.20). And vm-cli needs to connect by using some well-known IP-address to vm-srv. You are configuring port-forwaring on host and are using host address to do this. It looks like you are using host-address 10.211.55.2 for this. But the problem is that vm-srv receives network packets with address 10.211.55.10 from ParallelsSharedNetwork daemon and since it believes that it is an address from the same network, it replies directly to 10.211.55.20. But vm-cli knows nothing about 10.211.55.20 and rejects theses data. As as solution you need to use some another address to connect from VM to Host. I've just tried the case and port forwarding between VMs successfully works if I use as a HOST-address the vnic1 address 10.37.129.2