I'm able to connect to the local server when static IP is not set, however, as soon as I set a static IP on eth0 then I'm no longer able to reach the server by name. When I was configuring my static IP in
/etc/network/interfaces I was able to reach the server without issues but now when I follow the guides to set static IP in
/etc/dhcpcd.conf it no longer connect to server. I tried brand new Raspbian image so the
/etc/network/interfaces file is untouched and this is what I added at the end of
interface eth0 static ip_address=192.168.16.1/24 static routers=192.168.16.254 static domain_name_servers=192.168.10.100
How do I connect to the server even if I have static IP?