Arduino communicates with Internet, but not with local network

Hello,

I have a strange problem. I just setup a brand new Arduino MKR 1010.
I installed MKR 1010 firmware 1.2.1, and WifiNINA library version 1.3.0

If I run the WifiPing example out-of-the-box (just changed my network SSID and password), the Arduino is behaving as it should, successfully pinging google.com.
BUT
If I change the line

    pingResult = WiFi.ping(hostName);

with my computer IP address

pingResult = WiFi.ping(IPAddress(192, 168, 1, 27));

The ping won't work.

Second, if I run the WifiWebClientRepeating, I succesfully get back and print the example.org web page
But again, if I ask IPAddress(192, 168, 1, 27) to send a page, end up failing again...

In the other direction, running the WebServer in the Arduino, I can't reach it from any browser (no answer from Arduino).

Just in case it matters, I use an iMac with Mojave, and yes, I am sure of my IP address :slight_smile:

Any suggestion on what can be wrong ?

Thanks,

Does it work when using your gateways (usually that's your wifi-router) ip-address?

Did you try
[192, 168, 1, 27 ]
instead of
IPAddress(192, 168, 1, 27)
?

As I read the library, IPAddress is a class, not a function. Try this:

IPAddress myIP = IPAddress(192, 168, 1, 27);

pingResult = WiFi.ping(myIP);