I have done it a week ago here is the instruction
Click the Windows button and type Notepad in the search bar.
Right click on Notepad and then Run as Administrator.
You’ll be asked, “Do you want to allow this app to make changes to your device?”. Choose Yes.
In Notepad, choose File then Open.
Navigate to C:\Windows\System32\drivers\etc\hosts or click the address bar at the top and paste in the path and choose Enter. If you don’t readily see the host file in the /etc directory then select All files from the File name: drop-down list, then click on the hosts file.
Add the appropriate IP and hostname (184.108.40.206 domain.com) at the end of your hosts’ file, select Save, and then close the file. (make sure there is a space between ip address and domain)
Click the Windows button and type cmd in the search bar.
Open cmd file
Type:- ipconfig /flushdns
Now open your website in browser
If everything is working 100% on your website.
Remove your ip address and domain from C:\Windows\System32\drivers\etc\hosts and save file
You can now point your dns from your domain registrar to …
or to your new hosting server the above was mine