arduino / arduino/ArduinoCore-renesas

Clarify/remove sketch example from WiFiWebClientSSL

Open
#281 0 comments 0 reactions 0 assignees View on GitHub
topic: documentation type: imperfection
Dominant language
C
Stars
193
Forks
112
PR merge metrics
No merged PRs in 30d

Description

Please for all that is good clarify/remove this old example:

```cpp
// if you don't want to use DNS (and reduce your sketch size)
// use the numeric IP instead of the name for the server:
IPAddress server(74,125,232,128); // numeric IP for Google (no DNS)
```

This simply hasn't worked for years...

After changing the host request header accordingly to:
```cpp
client.println("Host: 74.125.232.128");
```
No response will be given back by the server.

I also tried using a different Google IP (142.250.179.174) and no response will be sent back.

People (like me) who create a temporary server with simply self-signed SSL certificates and no domain name for demo purposes will be met with more work than if we were to have actually gotten a real certificate + domain.

Other people seem to have had similar problems using different WiFi libraries **for years**: https://forum.arduino.cc/t/sslclient-with-static-ip-not-working/910236/3

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the WiFiWebClientSSL example and inspect the numeric-IP and Host-header guidance described in the issue. Determine whether the outdated example should be removed or clarified, and confirm that the resulting example no longer suggests a non-working static-IP HTTPS request.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, cpp
Domain
embedded-iot
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.