Local blynk server with GSM 800L

Hi guys,

Another question for you. I have a local server running fine on WIFI at home with my project happily running. I want to change the project connectivity from WIFI to GSM so I’m experimenting with how to do this with the local server.
I’m having issues with the connectivity to the local server (may I add I have no problems connecting to the blynk servers on port 80). My serial output is repeating the same server when connecting to my local server, example:

[12759] Modem init…
[13698] Connecting to network…
[13993] Network: vodaphone
[13993] Connecting to internet …
[20528] Connected to GPRS
[20797] Connecting to XXX.onmypc.net:9443
[31333] Connecting to XXX.onmypc.net:9443

The code for my project is this:

#define BLYNK_PRINT Serial
#define TINY_GSM_MODEM_SIM800

#include <TinyGsmClient.h>
#include <BlynkSimpleSIM800.h>

/********************************************************************/
// First we include the libraries
#include <DallasTemperature.h>
#include <OneWire.h>
/********************************************************************/

BlynkTimer timer;

// Your WiFi credentials.
// Set password to "" for open networks.
//char ssid[] = "";
//char pass[] = "";

// Your GPRS credentials
// Leave empty, if missing user or pass
char apn[]  = "internet";
char user[] = "";
char pass[] = "";
char auth[] = "";
//char server[] = "";
//int port = 9443;

#include <SoftwareSerial.h>
SoftwareSerial SerialAT(2, 3); // RX, TX

TinyGsm modem(SerialAT);

void setup()
{
  // Debug console
  Serial.begin(19200); // Start debugging if needed
  
  sensors.begin(); // Calls for Temperature sensor to start from library
   // Set GSM module baud rate
  SerialAT.begin(19200);
  delay(3000);
  // Restart takes quite some time
  // To skip it, call init() instead of restart()
  modem.restart();
  Blynk.begin(auth, modem, apn, user, pass, "XXX.onmypc.net", 9443);  
}

void loop() {
  Blynk.run();
  timer.run(); // Initiates BlynkTimer
}

I have port forwarding on my router and like I said above that works fine for my WIFI project on my local server.

I have used both a DDNS server (like above) and my external WAN IP but both have the same affect of the same connecting message in the serial print above. Can I use my local server with a GSM connection? Despite checking the forum I’m failing to come up with the solution - do you guys have any idea where I’m going wrong?

I don’t use GSM on anything… but generally the default Local Server hardware connection uses port 8080

Thanks gunner, your right. After testing 8080 I managed to get it working after forwarding a missing port on the router. Working now thanks

1 Like