05-05-2024, 03:13 PM
(05-05-2024, 03:00 PM)nosferatu_cat Wrote:(05-05-2024, 02:23 PM)Tim Curtis Wrote:(05-05-2024, 02:12 PM)nosferatu_cat Wrote: On my Pi 4 when I set a static IP all ports get closed. With DHCP it works fine. I haven't tried doing it from the command line.
What do you mean by "all ports get closed"?
There are no open ports from 0 to 65K. I can't connect via HTTP or SSH. It's visible on the network but unreachable. When I allow random address assignment the standard ports are open. I'm leaving shortly but will be back this afternoon Pacific. I've set local display on and will try a static IP again to see what I can see.
When a static IP address is set on a client there needs to be a configuration somewhere (/etc/hosts) in the Router to associate the IP address with a host name otherwise accessing by host won't work.
I tested static ip configs on both Ethernet and WiFi on my network and no issues with ssh pi@IP_ADDRESS or http://IP_ADDRESS