I tried to connect a Sparkfun ESP8266 Thing Dev to a local server using server-0.41.12-java8.jar through WiFi running on Window 10.
I use Blynk.begin(auth,ssid,pass,server,port)
to connect to the server and the serial monitor keeps reporting Connecting to 192.168.1.108:8080
There were two problems initially
i) Unable to connect to server using the mobile Blynk app
ii) Unable to connect to server from the ESP8266.
I was able to resolve i) by turning off firewall for the PC
How can I troubleshoot this problem? I am able to connect the ESP8266 to blynk-cloud and there are no issues in recording sensor data connected to the ESP8266.
Here are the rest of the code
#define BLYNK_PRINT Serial
#define BLYNK_DEBUG
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = "AB-gEp5TYsnO7qosiQidE3ejZq5QJkTA";
char ssid[] = "Guest";
char pass[] = "Guest";
char server[] = "192.168.1.108";
int port = 8080;
void setup() {
Serial.begin(9600);
Serial.setDebugOutput(true);
Blynk.begin(auth,ssid,pass,server,port);
}
void loop() {
Blynk.run();
}