open 4 ports TCP server mode


I need an example as to open more than 1 TCP port in server mode
Can someone help me please!.

Is this possible?

check NET+OS API reference Internetworking->Sockets->Socket API Functions -> IPv6 Examples.

There is IPv6 example for TCP server (it also works for IPv4). This example allows to connect 4 TCP sockets.

Also check