This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

NDK TCP/IP Socket Connection Refused

Other Parts Discussed in Thread: TM4C129ENCPDT

Hello, here is some basic information on my setup:

Microcontroller: Tiva TM4C129ENCPDT

IDE: CCS 6.1.0.00104

SYS/Bios Version: 6.41.00.26

TI NDK Version: 2.24.00.11

I have a task that creates 6 sockets on unique port numbers and listens on these ports.

I then use fd_poll to accept incoming connections and to also receive data from them.

I can successfully accept and receive on up to 4 sockets, but when I try to connect the 5th I receive a "Connection Refused" error on my client PC.

It doesn't matter what combination of ports I connect to , it always fails on the 4th one.

It looks like fd_poll is never tripped after the first 4 connections.

I still have plenty of free heap memory according to the ROV capture below.

The NDK Stack Thread also has more than enough memory it seems.

I have set Ip.socketMaxConnections= 10.

I am still a novice when it comes to NDK, any help would be appreciated.