FreeRTOS-Plus-TCP Echo Posix demo application does not work on Ubuntu Host Machine

I cloned the free rtos repository from freertos repo on github and trying to execute the posix_tcp_demo application from FreeRTOS/FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_Echo_Posix on same Ubuntu Host machine. I am using eth0 interface for my loopback testing and made below changes in FreeRTOSConfig.h :
a) #define configECHO_SERVER_ADDR β€œ192.168.205.30”
b) #define configMAC_ADDR0-ADDR5 : mac address of eth0 interface
c) #define configIP_ADDR0-ADDR3 : IP address configured at eth0 interface which is kept as β€œ192.168.205.30”
d) #define configGATEWAY_ADDR0-ADDR3 : gateway address set as β€œ192.168.205.0” identifed from ip route show
e) #define configDNS_SERVER_ADDR0-ADDR3 : same as gateway address
f) #define configNET_MASK0-MASK3 : set as β€œ255.255.255.0”

Then on one terminal I run echo server using β€œsudo nc -l -s 192.168.205.30 -p 7” and on another terminal I run posix_tcp_demo binary compiled from the above mentioned path. I get below error logs -
Connecting to echo server 192.168.205.30:7…
FreeRTOS_connect: 6893 to c0a8cd1eip:7
Socket 6893 β†’ [192.168.205.30]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8cd1eip miss using c0a8cd1eip
ARP for c0a8cd1eip (using c0a8cd1eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55ab51922240:0x7ff7ac01b70e
Connect[c0a8cd1eip:7]: next timeout 1: 500 ms
Socket 6893 β†’ [192.168.205.30]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128

It seems the ARP is not getting resolved and hence connect is failing. Can anyone please let me know what is wrong in the above setup. I also tried with different machine as echo server and also tried to create TAP interface instead of using eth0, create a bridge between tap1->eth0->br0 but still see the above errors only.

This:

Connect[c0a8cd1eip:7]: next timeout 1: 500 ms

normally means that the address is not yet resolved.
Just to be sure you can set the FREERTOS_SO_SNDTIMEO option to pdMS_TO_TICKS( 22000)? You should see 3 attempts to resolve the address.

And also, is it possible to follow the network with eg. Wireshark?

Or maybe you can try to ping from the DUT to an external device like a laptop?

@htibosch I tried setting the timeout value for xSendTimeOut as 22000 instead of TickType_t xSendTimeOut = pdMS_TO_TICKS( 2000 ); but still no effect. Also the 500 ms mentioned in next timeout is hardcoded in TickType_t prvTCPNextTimeout( struct xSOCKET * pxSocket ) under FreeRTOS_TCP_IP.c when TCPState == eCONNECT_SYN.

Previously when I tried with 2 different machines at that time I tried to run tcpdump at the server end to check whether packets are being received from client side but no ARP packets were received from client side. Thus it seems packets are itself not being sent from client side and at same time able to ping between 2 machines.

Seems like you have configured the IP address of the FreeRTOS+TCP demo application same as the device in which the echo server is run, leading to IP address conflicts/clashes. Could you try a different IP address in the same subnet for FreeRTOS+TCP demo application (i.e., #define configIP_ADDR0-ADDR3)

@tony-josi-aws I tried with 2 different PC setups with below modifications :
a) define configNETWORK_INTERFACE_TO_USE 2L as my interface name is eno1
b) #define configECHO_SERVER_ADDR β€œ192.168.1.110”
c) #define configGATEWAY_ADDR0-ADDR3 : β€œ192.168.1.1”
d) #define configDNS_SERVER_ADDR0-ADDR3 : β€œ192.168.1.1”
e) #define configNET_MASK0-MASK3 : β€œ255.255.255.0”

Still observe the same errors. Also confirmed that able to ping between 2 systems.

@PA_adas

I was asking about the address you have configured for the FreeRTOS+TCP demo application. If you are using static IP address, it will be set to the configIP_ADDR0-ADDR3 defined in the FreeRTOSConfig.h.

The simulated demo creates a virtual network connection with its own endpoint, so the IP address and the MAC address need to be unique on the network.

I just tested the latest mainline version of the posix demo and its working as expected for me, this demo is also hosted the Github CI of the FreeRTOS repository for pull request validation; you can take a look at the CI script that runs this demo on the CI here: FreeRTOS/.github/workflows/freertos_plus_demos.yml at main Β· FreeRTOS/FreeRTOS Β· GitHub

It uses a python script as an echo server that can be found here: CI-CD-Github-Actions/localhost-echo-server/local_echo_server.py at main Β· FreeRTOS/CI-CD-Github-Actions Β· GitHub

@tony-josi-aws I forgot to mention the static IP address configured in my previous response. Apologies. It was configured as β€œ192.168.1.111”.

Attaching my complete scenario for reference. I referred to the CI script shared and following similar steps.

Are you able to ping 192.168.1.111 from your server PC2?

Yes. Able to ping each other PC. Is the configuration correct or anything is missing?

Note that it’s not needed to update the configMAC_ADDR0-5 field. You can keep the default values if they’re not conflicting with other devices.

Tried keeping the default value present in FreeRTOSConfig.h i.e
#define configMAC_ADDR0 0x00
#define configMAC_ADDR1 0x11
#define configMAC_ADDR2 0x22
#define configMAC_ADDR3 0x33
#define configMAC_ADDR4 0x44
#define configMAC_ADDR5 0x41
Still the same error. For reference the commit ID for my repo is 9b5e277a6f44061b2b4956637eb05bc3a8848e8d

Can you share the full logs of the demo application from the start of the execution?

Please find attached logs.
Note : Unable to upload as an attachment due to restrictions.

./posix_tcp_demo 

Trace started.
The trace will be dumped to disk if a call to configASSERT() fails.

The trace will be dumped to disk if Enter is hit.
Starting echo client demo
Seed for randomiser: 1750312764
Random numbers: 00001D5D 00007A46 00005977 00005AFA
FreeRTOS_IPInit
FreeRTOS_AddEndPoint: MAC: 44-41 IPv4: c0a8016fip
vTaskStartScheduler
 
TCS MBuffNetworkInterface.c - xNetworkInterfaceInitialise.


IP Address: 192.168.1.111
Subnet Mask: 255.255.255.0
Gateway Address: 192.168.1.1
DNS Server Address: 192.168.1.1



Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 7192 to c0a8016eip:7
Socket 7192 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a240:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a300:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a360:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac000b80 parent 0x7fdaac000b80 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 7192 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 7192 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 11375 to c0a8016eip:7
Socket 11375 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a3c0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a420:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a480:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac000e90 parent 0x7fdaac000e90 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 11375 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 11375 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 1574 to c0a8016eip:7
Socket 1574 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a4e0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a540:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a5a0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0011a0 parent 0x7fdaac0011a0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 1574 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 1574 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 6290 to c0a8016eip:7
Socket 6290 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a600:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a660:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a6c0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0014b0 parent 0x7fdaac0014b0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 6290 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 6290 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 30910 to c0a8016eip:7
Socket 30910 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a720:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a780:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a7e0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0017c0 parent 0x7fdaac0017c0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 30910 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 30910 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 14318 to c0a8016eip:7
Socket 14318 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a840:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a8a0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a900:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac001ad0 parent 0x7fdaac001ad0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 14318 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 14318 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 21499 to c0a8016eip:7
Socket 21499 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a960:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
xNetworkInterfaceOutput: 0x55930bf8a9c0:0x7fdab801b70e
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8aa20:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8aa80:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac001de0 parent 0x7fdaac001de0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 21499 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 21499 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 32345 to c0a8016eip:7
Socket 32345 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8aae0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8ab40:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8aba0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0020f0 parent 0x7fdaac0020f0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 32345 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 32345 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 29574 to c0a8016eip:7
Socket 29574 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8ac00:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8ac60:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8acc0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0020f0 parent 0x7fdaac0020f0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 29574 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 29574 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 15594 to c0a8016eip:7
Socket 15594 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8ad20:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8ad80:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8ade0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0020f0 parent 0x7fdaac0020f0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 15594 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 15594 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 25093 to c0a8016eip:7
Socket 25093 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8ae40:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8aea0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8af00:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0020f0 parent 0x7fdaac0020f0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 25093 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 25093 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 16857 to c0a8016eip:7
Socket 16857 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8af60:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8afc0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b020:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0020f0 parent 0x7fdaac0020f0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 16857 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 16857 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 22268 to c0a8016eip:7
Socket 22268 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b080:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b0e0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b140:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0020f0 parent 0x7fdaac0020f0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 22268 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 22268 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 24082 to c0a8016eip:7
Socket 24082 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b1a0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b200:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b260:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0020f0 parent 0x7fdaac0020f0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 24082 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 24082 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 23250 to c0a8016eip:7
Socket 23250 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b2c0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b320:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b380:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0020f0 parent 0x7fdaac0020f0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 23250 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 23250 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 23979 to c0a8016eip:7
Socket 23979 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b3e0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b440:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b4a0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0020f0 parent 0x7fdaac0020f0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 23979 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 23979 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 5863 to c0a8016eip:7
Socket 5863 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b500:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b560:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b5c0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0020f0 parent 0x7fdaac0020f0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 5863 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 5863 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 16249 to c0a8016eip:7
Socket 16249 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b620:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b680:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b6e0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0020f0 parent 0x7fdaac0020f0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 16249 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 16249 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 28671 to c0a8016eip:7
Socket 28671 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b740:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b7a0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b800:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0020f0 parent 0x7fdaac0020f0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 28671 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 28671 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 32115 to c0a8016eip:7
Socket 32115 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8b860:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a240:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a300:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0020f0 parent 0x7fdaac0020f0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 32115 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 32115 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 8056 to c0a8016eip:7
Socket 8056 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a360:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a3c0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a420:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0020f0 parent 0x7fdaac0020f0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 8056 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 8056 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 21169 to c0a8016eip:7
Socket 21169 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a480:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a4e0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a540:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0020f0 parent 0x7fdaac0020f0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 21169 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 21169 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 9215 to c0a8016eip:7
Socket 9215 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a5a0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a600:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a660:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0020f0 parent 0x7fdaac0020f0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 9215 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 9215 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 27929 to c0a8016eip:7
Socket 27929 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a6c0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a720:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a780:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 3: 500 ms
Connect: giving up c0a8016eip:7
Move from eCONNECT_SYN to eCLOSE_WAIT
vTCPStateChange: Closing (Queued 0, Accept 0 Reuse 0)
vTCPStateChange: me 0x7fdaac0020f0 parent 0x7fdaac0020f0 peer (nil) clear 0
vTCPStateChange: xHasCleared = 0
Socket 27929 -> [192.168.1.110]:7 State eCONNECT_SYN->eCLOSE_WAIT
FreeRTOS_connect() stopped due to an error
Could not connect to server, received error code -128
FreeRTOS_closesocket[0ip port 27929 to c0a8016eip port 7]: buffers 59 socks 0

Connecting to echo server 192.168.1.110:7....
FreeRTOS_connect: 9402 to c0a8016eip:7
Socket 9402 -> [192.168.1.110]:7 State eCLOSED->eCONNECT_SYN
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a7e0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 1: 500 ms
xNetworkInterfaceOutput: 0x55930bf8a840:0x7fdab801b70e
ARP c0a8016eip miss using c0a8016eip
ARP for c0a8016eip (using c0a8016eip): rc=0 00-00-00-00-00-00
xNetworkInterfaceOutput: 0x55930bf8a8a0:0x7fdab801b70e
Connect[c0a8016eip:7]: next timeout 2: 500 ms
^C

Can you check where the above log is coming from?
Also, what happens if you enable DHCP? Please share the logs with DHCP enabled as well.

These were the logs added for debugging purpose (FreeRTOS-Plus-TCP/source/portable/NetworkInterface/libslirp/MBuffNetworkInterface.c).

For DHCP enabled, the application takes the IP address as 10.0.2.15 whereas I have configured the static IP for both systems. Do I still send the logs with just DHCP enabled?

With DHCP enabled, try running the server on the same system: sudo nc -l -s <ip of the system where demo is run> -p 7

You should now be able to upload.

Enabled DHCP and ran the server on same system and was able to connect with server.
Changes made are -
a) #define configECHO_SERVER_ADDR : β€œ192.168.1.111”
b) #define configIP_ADDR0-ADDR3 : Same as echo server addr.

Please find attached logs for reference.
freertos_posix_tcp_demo_dhcp_logs_1.zip (1.5 KB)
Below is the message received at server end :
TxRx message number 0-WXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTU

@tony-josi-aws Thanks for your support. Can you please let me know how to make it work for Static IP? Ironically it worked for static only as the 192.168.1.111 is static address as there is no DHCP server running then what is the significance of this flag.
Also, did it work for you with DHCP disabled?

@aggarg Thanks for your support.

Yes, I tested commit 9b5e277a6 both with DHCP and static IP (with local and remote TCP servers).

You can find the diff of the configuration I user here:
static_ip_diff.patch (4.1 KB)

For remote TCP echo server, I used this service: https://tcpbin.com/ (IP: 45.79.112.203)

Attaching the PCAP for static IP demo with local and remote TCP servers:
local_server_filtered.zip (1.4 KB)
remote_server_filtered.zip (2.4 KB)