I lifted the code from Arduino LiveCast Series S02E04 ([livecast/Season 2/Episode 4 - MKR1010 WiFi setup at master · arduino/livecast · GitHub](https://github.com/arduino/livecast/tree/master/Season 2/Episode 4 - MKR1010 WiFi setup)). It didn't work.
From it, I created the MCVE (at the end), but in short, client never turns true.
void loop() {
WiFiClient client = server.available(); // listen for incoming clients
if (client) {
I use Arduino IDE 1.8.13 to produce code for the MKR WiFi 1010.
The compiler includes WiFiNINA.h@1.8.7.
The code successfully launches a DHCP request. It can retrieve network time. It successfully launches ICMP ping requests and gets responses. It responds to ping requests.
When I make an HTTP request to MKR (a TCP SYN packet), the MKR responds with [RST, ACK]. The ACK acknowledges the request, but the RST indicates a refusal, as I understand it.
SYN Request from my PC browser (192.168.1.7)
Frame 69335: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface \Device\NPF_{EEC68D41-9E1E-48C4-9634-E507FDD38690}, id
0
Ethernet II, Src: IntelCor_e1:b2:11 (60:36:dd:e1:b2:11), Dst: Espressi_91:11:94 (4c:11:ae:91:11:94)
Internet Protocol Version 4, Src: 192.168.1.7, Dst: 192.168.1.8
Transmission Control Protocol, Src Port: 56087, Dst Port: 80, Seq: 0, Len: 0
[RST, ACK] response from MKR (192.168.1.8)
Frame 69455: 54 bytes on wire (432 bits), 54 bytes captured (432 bits) on interface \Device\NPF_{EEC68D41-9E1E-48C4-9634-E507FDD38690}, id 0
Ethernet II, Src: Espressi_91:11:94 (4c:11:ae:91:11:94), Dst: IntelCor_e1:b2:11 (60:36:dd:e1:b2:11)
Internet Protocol Version 4, Src: 192.168.1.8, Dst: 192.168.1.7
Transmission Control Protocol, Src Port: 80, Dst Port: 56087, Seq: 1, Ack: 1, Len: 0
Frankly, I don't understand the man page or the logic behind using a WiFiClient class member to create a server, but when someone gives a pithy response, then I'll get it.
Sandbox200403.ino (9.06 KB)