Connection Problem UNO R3

Hi everyone,
I have connected Ethernet Shield W5100 to Arduino UNO R3.
W5100 connected to my home router which connected to internet. There is the static IP in my router: 10.10.10.1
And I use the same Auth Token in project also at mobile application. And I can ping to W5100
But when I try to run mobile application there is message “Your Arduino UNO is not in network”
Here is the code:
`#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = “3470504abf3a478d805814ac8e98bdb8”;

IPAddress server_ip (10, 10, 10, 1);

// Mac address should be different for each device in your LAN
byte arduino_mac[] = { 0xDE, 0xED, 0xBA, 0xFE, 0xFE, 0xED };
IPAddress arduino_ip ( 10, 10, 10, 100);
IPAddress dns_ip ( 8, 8, 8, 8);
IPAddress gateway_ip ( 10, 10, 10, 1);
IPAddress subnet_mask(255, 255, 255, 0);

void setup()
{
Serial.begin(9600);
Blynk.begin(auth, server_ip, 8442, arduino_ip, dns_ip, gateway_ip, subnet_mask, arduino_mac);
// Or like this:
//Blynk.begin(auth, “blynk-cloud.com”, 8442, arduino_ip, dns_ip, gateway_ip, subnet_mask, arduino_mac);
}

void loop()
{
Blynk.run();
}`

Try any simple example file with ethernet arduino to test…
run blynk ethernet eg…
WARNING: If you have an SD card, you may need to disable it

  •   by setting pin 4 to HIGH. Read more here:
    
  •   https://www.arduino.cc/en/Main/ArduinoEthernetShield
    

If still it does not work try waiting and restarting:slight_smile:

This is an example file of Blynk.
People doing same thing on internet. Their project is running, mine is not.
What is the real problem???

did you try it without blynk…please check your connection…
@Deep_Sky

I did not try other sketch. But I can ping to W5100 which connected to router.
I can not understand why mobile application could not find my Arduino UNO on internet.

What does the serial output on your Arduino IDE say?

[5001] Connecting to 10.10.10.1
[37120] Connecting to 10.10.10.1
[69238] Connecting to 10.10.10.1
[101358] Connecting to 10.10.10.1
[133477] Connecting to 10.10.10.1
[165597] Connecting to 10.10.10.1

only these messages

So are you trying to use the Blynk cloud server or do you have a local Blynk server setup somewhere?

Looks like you code is trying to connect to a Blynk server at 10.10.10.1 on your local network.

Why have you done this?

I would like to connect to local server. But it seems wrong configuration to connect.

Now, if I try to connect Blynk cloud server, what I have to type there?

So do you have a local server? Is your phone Blynk app connected to local server or cloud server?

If you want to use the cloud server then there is no need to do all the config setup defining IP addresses, gateways, etc. just use Blynk.begin as per Ethernet examples.

But it also does not works.
I use simple Arduino_Ethernet example sketch and connect W5100 to router.
Message on mobile application:“Your Arduino UNO is not in network”

What does your serial monitor on the Arduino IDE say now?

[[0] Blynk v0.3.8 on Arduino Uno
[0] Getting IP…
It could not get an IP, because my router is in static IP. That`s why I would like also to give static IP to W5100.
And It also did not works.
How to be in this situation?
Router is in static IP. And I want to use cloud server.