mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #872] What is the best way to display the Ip address when connected to wifi? #736
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#736
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 @World525 on GitHub (Apr 25, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/872
I have tried many ways to do this such as js to change the value of textbox to ip and automatically redirecting the webpage to the ip but then both failed. What is the best way to show the ip without using Serial Monitor and connect it to an android device? Thanks.
@tablatronix commented on GitHub (Apr 25, 2019):
Not sure I understand, display where?
If you do not know the ip, then a webpage is useless, how will you get to it, you could try using mdns and hostname
@World525 commented on GitHub (Apr 27, 2019):
@tablatronix Thanks for replying. What I am trying to say is how do I display the ip of the esp8266 when it connects to the internet. What is the best way to display it in the webpage? Right now, I am tried to use js to update it but then it doesn't work. I will share to you my WiFiManager so that you can see as well. Thank you :)
@World525 commented on GitHub (Apr 27, 2019):
I invited you to see the edited version. Thanks
@tablatronix commented on GitHub (Apr 27, 2019):
you cannot, this is already discussed at length elsewhere, the ap is shutdown when connecting to save
@World525 commented on GitHub (Apr 30, 2019):
@tablatronix I have been stuck for a while and I don't know why esp8266.local doesn't respond but then the ip responds. Here is the code I got from the example:
@tablatronix commented on GitHub (Dec 4, 2019):
I think you are now required to run MDNS.update in loop to service it, not sure
@chandra358566 commented on GitHub (Mar 17, 2023):
this program ok but
how connect two led control?
@chandra358566 commented on GitHub (Mar 17, 2023):
/*
*/
#include <ESP8266WiFi.h>
const char WiFiPassword[] = "1234567890";
const char AP_NameChar[] = "gowrishankar" ;
WiFiServer server(80);
String header = "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n";
String html_1 = "<html><head></head>
LED Control
";String html_2 = "";
String html_4 = "
String request = "";
int LED_Pin = 02;
void setup()
{
pinMode(LED_Pin, OUTPUT);
} // void setup()
void loop()
{
// The client will actually be disconnected when the function returns and 'client' object is detroyed
} // void loop()