Remember the last allocated port and try to allocate the next one on the following call (prevents 1024 from being allocated each time) Updated files: trunk/reactos/drivers/lib/ip/network/ports.c trunk/reactos/drivers/net/tcpip/include/ports.h