05-06-2024, 12:14 AM
(This post was last modified: 05-06-2024, 12:16 AM by nosferatu_cat.)
(05-05-2024, 03:13 PM)Tim Curtis Wrote:(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
Hmm... I've always set a static IP address for Moode setups using the networking config screen. This is the first time I've ever had a problem doing it that way. I've done it from the router and from Moode in the past. I just double checked the router to make sure I hadn't reserved the address.