Before connecting an ESP32, a Raspberry Pi or a Wi-Fi camera, find your local network IP address and subnet. The public IP reported by an online service is not the address you need for a device on your bench.
192.168.1.34
192.168.1.1
192.168.1.200
Find your IP address on Windows
Press Windows + R, type cmd and press Enter. Run:
ipconfigLocate the connected Wi-Fi or Ethernet adapter. Ignore disconnected adapters and virtual adapters unless they are part of the network you are actually using. A typical result looks like this:
Wireless LAN adapter Wi-Fi:
IPv4 Address. . . . . . . : 192.168.1.34
Subnet Mask . . . . . . . : 255.255.255.0
Default Gateway . . . . . : 192.168.1.1This is an illustrative output, not a screenshot of a real computer. Your numbers will be different. The IPv4 address identifies your computer; the mask defines the local subnet; the gateway forwards traffic to other networks.
Find your IP address on Linux
ip -4 addr
ip routeLook for an active network interface such as wlan0, wlp2s0 or eth0. Interface names vary. Example:
inet 192.168.1.34/24 scope global dynamic wlp2s0
default via 192.168.1.1 dev wlp2s0
192.168.1.0/24 dev wlp2s0 scope link src 192.168.1.34The /24 prefix is equivalent to the mask 255.255.255.0. A default route identifies the gateway. When several networks or VPNs exist, identify the interface that reaches the device you want to use.
Choose a safe address for a Wi-Fi device
For a typical /24 network, the network address ends in .0 and the broadcast address ends in .255. In our example, the usable host addresses run from 192.168.1.1 to 192.168.1.254. Some are already occupied, including the router and your computer.
Prefer a DHCP reservation configured in your router for the camera’s MAC address, if the firmware uses DHCP. For a manually configured static address, choose one outside the router’s DHCP pool or explicitly exclude it from that pool. Check existing leases and device assignments. A failed ping is not proof that an address is free.

Apply the address to our camera project
In the Bench to Field firmware, CAMERA_IP_LAST is the final octet for the project’s typical /24 network configuration. With a gateway of 192.168.1.1, the example setting is:
#define CAMERA_IP_LAST 200The intended address is 192.168.1.200. For a network with a different prefix or a non-/24 subnet, inspect the firmware’s network configuration before assuming this rule applies.
After uploading, check the actual camera IP in the serial monitor and open http://192.168.1.200/ in a browser on the same local network. Substitute your real address.
Troubleshooting
- Different subnets: check the mask and whether routing between the two networks is available.
- Guest Wi-Fi: client isolation may prevent devices from communicating.
- Address conflict: check the router’s DHCP configuration and other assigned addresses.
- ESP32-CAM cannot join: verify the 2.4 GHz Wi-Fi network and credentials.
Keep the camera on a trusted local network. Do not expose its HTTP interface by forwarding ports on your router.
References
Microsoft: ipconfig · Linux ip-address manual · Linux ip-route manual.
See Connect a Camera to Your AI for the hardware, firmware and free source package. These examples use the project’s local HTTP endpoints.