How to resolve ESP32 AP to a name?

User avatar
corz.org
Posts: 80
Joined: Fri Feb 03, 2023 10:44 pm
Location: Aberdeen
Contact:

Re: How to resolve ESP32 AP to a name?

Postby corz.org » Fri Jun 09, 2023 12:58 am

The most reliable way to do this is to setup a proper DNS host name in your local WiFi router (most routers have point-and-click interfaces for this). Every device in your home/office/wherever should have a proper (preferably short) host name. To hell with typing 192.168.1.whatever into your browser just to get to your cam!

Failing that, hack the IP address into your system's hosts file. A few seconds later you can access your ESP32 at

Code: Select all

http://cam/
or whatever. Quick and dirty, yes, but the local hosts file is usually also the first place a system will look to match a host name; so quick and quicker.

Next would be the ESP32's built-in AP (again, it's worth keeping

Code: Select all

192.168.4.1  32 esp damnit
(use your own host names, of course) in your local hosts file at all times, cuz why not?

And lastly, maybe, mDNS.

esp-at
Posts: 200
Joined: Mon May 09, 2022 3:00 am

Re: How to resolve ESP32 AP to a name?

Postby esp-at » Tue Jun 13, 2023 3:36 am


Who is online

Users browsing this forum: No registered users and 9 guests