I use those arrays to read the request and send the response, there is no stack overflow error. I've defined a IP value inside the server file (#define) and it worked as intended, but I want to be able to read the IP from Kconfig instead of having it in the server file, I'll be looking for a way to do this.
Thank you all for the support! ________________________________ De: Gregory Nutt <spudan...@gmail.com> Enviado: quinta-feira, 21 de setembro de 2023 10:45 Para: dev@nuttx.apache.org <dev@nuttx.apache.org> Assunto: Re: different IP than expected On 9/21/2023 6:34 AM, Simon Filgis wrote: > When I started with networking, I set the IP via kconfig. I remember that > it was necessary to enter the same IP at two different places. Netlib and > FTP server in my case. Maybe your IP is overwritten by another app? A > buildin app that you use for experiments? Something as simple as stack overflow might be the issue. There are some huge arrays on the stack that might be causing issues: struct sockaddr_in address; int opt = 1; int addrlen = sizeof(address); / char buffer[2048] = {0};// // char response[4096] = {0};/ const char *file = "/data/client.html"; So it is going to need a stack allocation of something like 8Kb.