Zend certified PHP/Magento developer

Lost connection to local server

I wanted to connect to a local server on a domain without internet and found a way by changing the IP settings from “obtain an IP address automatically” to “use the following IP address” and giving it the actual IP address of my machine, then leaving the default gateway and preferred DNS server empty. It was working fine where I can reach my local server on the domain but with no internet but suddenly it stopped working and if I try to ping the domain it says Ping request could not find host ..... Please check the name and try again and if I make it with DHCP where the internet works then I can reach my server. Could anyone please advise?

enter image description here