How to configure Zero 2W as AP with DHCP server

I want to configure my RasPi zero 2 W as access point so that I can:

  1. connect to it from another device (over WiFi)
  2. to retrieve a camera feed and check
  3. a webpage running on a webserver.
    I’ve got all the major components (1-3) working fine but I can’t seem to get the DHCP server dhcpcd to work the way it should. I want to assign a dynamic IP to the device that connects tothe AP, so that it can retrieve the feed and the website from a static IP (that being the IP ofthe Pi). I have tried the following:
    /etc/dnsmasq.conf:
interface=wlan0      # Use interface wlan0
dhcp-range=192.168.50.20,192.168.50.50,255.255.255.0,24h

and
/etc/dhcpcd.conf:

interface wlan0
static ip_address=192.168.50.10/24
noipv6
nohook wpa_supplicant

dnsmasq:

$ sudo systemctl status dnsmasq.service                                                                                                                                         
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
     Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; preset: enabled)
     Active: active (running) since Sat 2024-08-10 03:15:24 PDT; 2s ago
    Process: 26875 ExecStartPre=/etc/init.d/dnsmasq checkconfig (code=exited, status=0/SUCCESS)
    Process: 26883 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=0/SUCCESS)
    Process: 26892 ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf (code=exited, status=0/SUCCESS)
   Main PID: 26891 (dnsmasq)
      Tasks: 1 (limit: 368)
        CPU: 211ms
     CGroup: /system.slice/dnsmasq.service
             └─26891 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=.,20326,8,2,e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d

Aug 10 03:15:23 raspberrypi systemd[1]: Starting dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server...
Aug 10 03:15:24 raspberrypi dnsmasq[26891]: started, version 2.89 cachesize 150
Aug 10 03:15:24 raspberrypi dnsmasq[26891]: compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset nftset auth cryptohash DNSSEC loop-detect inotify dumpfile
Aug 10 03:15:24 raspberrypi dnsmasq[26891]: warning: interface wlan0 does not currently exist
Aug 10 03:15:24 raspberrypi dnsmasq-dhcp[26891]: DHCP, IP range 192.168.50.20 -- 192.168.50.50, lease time 1d
Aug 10 03:15:24 raspberrypi dnsmasq[26891]: no servers found in /etc/resolv.conf, will retry
Aug 10 03:15:24 raspberrypi dnsmasq[26891]: read /etc/hosts - 7 names
Aug 10 03:15:24 raspberrypi systemd[1]: Started dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server.

dhcpcd:

sudo systemctl status dhcpcd                                                                                                                                                  
● dhcpcd.service - DHCP Client Daemon on all interfaces
     Loaded: loaded (/lib/systemd/system/dhcpcd.service; enabled; preset: enabled)
     Active: deactivating (stop-sigterm) (Result: signal) since Sat 2024-08-10 03:23:06 PDT; 6s ago
       Docs: man:dhcpcd(8)
    Process: 27236 ExecStart=/usr/sbin/dhcpcd -q -b (code=exited, status=0/SUCCESS)
   Main PID: 27238 (code=killed, signal=SYS)
      Tasks: 2 (limit: 368)
        CPU: 247ms
     CGroup: /system.slice/dhcpcd.service
             ├─27239 "dhcpcd: [privileged proxy]"
             └─27240 "dhcpcd: [network proxy]"

Aug 10 03:23:06 raspberrypi dhcpcd[27239]: DUID 00:01:00:01:2e:48:97:f1:d8:3a:dd:80:85:e8
Aug 10 03:23:06 raspberrypi systemd[1]: Started dhcpcd.service - DHCP Client Daemon on all interfaces.
Aug 10 03:23:06 raspberrypi dhcpcd[27239]: eth0: IAID 1b:dc:c4:06
Aug 10 03:23:06 raspberrypi dhcpcd[27239]: ps_ctl_listen: read: Success
Aug 10 03:23:06 raspberrypi dhcpcd[27239]: ps_ctl_recv: read: Success
Aug 10 03:23:06 raspberrypi systemd[1]: dhcpcd.service: Main process exited, code=killed, status=31/SYS
Aug 10 03:23:06 raspberrypi dhcpcd[27239]: ps_sendcmdmsg: Connection refused
Aug 10 03:23:06 raspberrypi dhcpcd[27239]: ps_inet_recvra: Connection refused
Aug 10 03:23:09 raspberrypi dhcpcd[27239]: ps_sendcmdmsg: Transport endpoint is not connected
Aug 10 03:23:09 raspberrypi dhcpcd[27239]: ps_inet_recvra: Transport endpoint is not connected

I have also stopped & disabled NetworkManager:

sudo systemctl stop NetworkManager
sudo systemctl disable NetworkManager

I’m on:

cat /etc/os-release 
PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)"
NAME="Raspbian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

How can I configure my dhcpcd to work correctly and assign an IP when a client connects?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật