mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #127] Webserver Hostname Configuration for DHCP Headless Setup #99
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#99
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Grimace06 on GitHub (Mar 17, 2016).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/127
Hey All-
Love this utility. Working on my 1st webserver project and I'm trying to build a unit that can be set up headlessly by an inexperienced user (sister & brother in law).
The WiFi manager sets up the webserver perfectly and I'm able to set the hostname by using the command [wifi_station_set_hostname("foobar");], but I'm unable to access the webserver by hostname, only by IP address. As the end user will not be able to see the IP address, is there any way to set up a static web browser navigable feature so that the user can find the server pages without knowing the DHCP IP?
I haven't yet used the Angry IP scanner, as I hear that works well to detect connected local peripherals, because I'd like to make this as easy as possible for my non-tech inclined sister & bro inlaw.
Thanks for your insight!
-KDG
@tzapu commented on GitHub (Mar 24, 2016):
hi, thank you for the appreciation
is this hostname necessary for dhcp ?
or just regular hostname that you type in browser to open page?
when the portal is started, and you are connected to it, it also starts a dns server that should reroute any domain to the config portal... can you check?
@tzapu commented on GitHub (May 8, 2016):
Hi,
wifi_station_set_hostname or WiFi.hostname set the DHCP hostname it seems.
For accessing through a webserver, any hostname should work as the dns captive portal should redirect everything to it.
If there is a problem with that, please reopen the issue.
Thank you very much for using it, love the appreciation :D