all ports

What can i use to make a server that is not bound to a single port but s
bound to a range o ports say 1-1024 i no the server socket components wont
do this but i hear winsock will any pointers on how i would go about it.

 I want to make a server that binds it self to all the ports i tell it to
rather than one, sort of like a firewall.