Setting VMWare VM network addresses on local host - lago-morph/chiller GitHub Wiki

This is for setting up the local development environment.

To set a specific IP to a VM, you have to do as follows:

Edit C:\ProgramData\VMware\vmnetdhcp.conf - add something like host hostname { hardware ethernet 00:0C:29:71:66:D2; fixed-address 192.168.146.129; }

notepad "C:\ProgramData\VMware\vmnetdhcp.conf"

Restart VM DHCP service

net stop vmnetdhcp
net start vmnetdhcp

Edit the windows hosts file: The hosts file is located in "C:\Windows\system32\drivers\etc" on both Windows 10 and 11, and you need administrative permissions to edit it.

notepad "C:\Windows\system32\drivers\etc\hosts"