ESP8266 can connect to blynk-cloud but not local server

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

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[] = "";
int port = 8080;

void setup() {

void loop() {;

I’ve solved my problem.
I made a rookie mistake and connected the Thing and server to different SSIDs.