Hello everyone
I setup a local blynk server on my raspberry pi 4 everything works fine i can connect from the mobile app via cellular or wifi, but only 1 device works!
When i put the same code (that works) on another device booth of them esp8266 the new device wonât connect to the server ipâŚ
I think you need to explain more, maybe starting with the basics about server version, library version, hardware, sketches (correctly formatted with triple backticks), server logs etc, along with a complete description of what youâve done so far and what results you are seeing.
so server version is 0.41.16
blynk version is 1.0.0.beta 3
#define BLYNK_PRINT Serial // This prints to Serial Monitor
#define BLYNK_DEBUG // Optional, this enables more detailed prints
#include <ESP8266WiFi.h> // for ESP8266
#include <BlynkSimpleEsp8266.h> // for ESP8266
char auth[] = "fZtQYt-Q7igpWgWiPCJF_WMRu_P6eOjK";
char ssid[] = "IOT";
char pass[] = "23122012";
char server[] = "192.168.1.101"; // IP for your Local Server
int port = 8080;
void setup() {
Serial.begin(9600); // BLYNK_PRINT data
WiFi.begin(ssid, pass);
Blynk.config(auth, server, port);
Blynk.connect();
}
void loop() {
Blynk.run();
}
its a very easy code just to test if it works.
ive searched the hole web for information, checked double and dripple times that the ports are correctly forwarding.
17:25:58.678 INFO - Using data dir â/home/pi/Blynkâ
17:26:00.617 INFO - Region : local. Host : 127.0.1.1.
17:26:01.524 INFO - Initializing gmail smtp mail transport. Username : example@gmail.com. SMTP host : smtp.gmail.com:587
17:26:01.592 INFO - Reports : 0
17:26:01.593 INFO - Didnât find custom user certificates.
17:26:01.596 INFO - Didnât find Letâs Encrypt certificates.
17:26:01.596 WARN - You didnât specified âserver.hostâ or âcontact.emailâ properties in server.properties file. Automatic certificate generation is turned off. Please specify above properties for automatic certificates retrieval.
17:26:01.596 WARN - ATTENTION. Server certificate paths (cert : â/home/piâ, key : â/home/piâ) not valid. Using embedded server certs and one way ssl. This is not secure. Please replace it with your own certs.
17:26:05.468 INFO - HTTP API and WebSockets server listening at 8080 port.
17:26:05.472 INFO - HTTPS API, WebSockets and Admin page server listening at 9443 port.
17:26:05.474 INFO - Mqtt hardware server listening at 8440 port.
17:27:07.755 INFO - hardware joined.
17:27:10.509 INFO - hardware joined.
17:27:12.820 INFO - Blynk-app (iOS-22606) joined.
17:27:15.553 INFO - hardware joined.
So for anyone whoâs intresstet,
The problem was the router somehow it lets connect the espâs to wifi but donât let them connect to the ip adress of the local serverâŚ
I managed it with an old router that i installed as a access point ! (Firewall are turned off on ap)
So i let the esps connect to the ap and then to the ip of the the server, i dont know why but this works fine ! @PeteKnight thanks for your tips and help !