Private IP adress

Hello,

Actually I'm working on a project about a smart socket, I need to request data from a web page which has a private IP adress. Should I use an Ethernet shield or a ESP8266 ? knowing that I want to access to the web page only from a local network , and I want to receive a whatsapp message as a kind of alert.

Should I use an Ethernet shield or a ESP8266 ?

Depend on your choice of network. With the Ethernet Shield you'll use a network cable but with the ESP8266 it will be WiFi.

knowing that I want to access to the web page only from a local network

You already expressed this by writing that the server has a private IP.

I want to receive a whatsapp message as a kind of alert.

Please explain in what relation this is with the rest of your post?

The socket sould send a wtp notification to the user , I am not sure if I can do it using an Ethernet Shield

Please define the term "WTP notification".

Provide more information about your project, as "smart socket" can mean a lot of things.

Sending whatsup message can be tricky as that service doesn't offer an API to do such stuff as their police don't allow automated messages.

I want to say "WhatsApp notification".

It's about a socket designed to send an alert in case of solar power insufficiency based on data requested from a web page.

I have a question about the get request through the google server , how can I do it using client.println() and the private IP adress ?

And what are the other possible solutions to send a notification using the Ethernet Shield ?

Thank you in advance.

I want to say "WhatsApp notification".

Did you read what I wrote about Whatsapp messages?

It's about a socket designed to send an alert in case of solar power insufficiency based on data requested from a web page.

What's the reason for that being a socket? And if you get all data on the internet and want to send the alert to the internet why the hell are you using an Arduino for that? That's about the most inefficient choice you could do.

I have a question about the get request through the google server , how can I do it using client.println() and the private IP adress ?

Again: no relation to the rest of the thread (where is the google server coming in?) and not enough context information to help you. You haven't posted any code but just write some method names here. Do you expect us to write your code? Forget that.

You didn't see what I'm talking about.

For the whatsApp notification, I've only decorticated the term "wtp" , I understand your last answer.

Again, I want to send the alert to the user not to the internet !!!

For the code, I've already written it and I only ask about the syntax of a get request using the IP adress of the web page.

I'm not that kind of people waiting for a ready code.

I think it's clear now.

The Ethernet library includes an example named WebClient showing how to do HTTP GET. The ESP8266 Arduino board package includes HTTP GET examples in the folder named ESP8266HTTPClient.

I think both will work with private and Internet addresses.

Ok thank you