RS is half right. You have to specify an address family. That isn't normally accomplished by merely specifying a port. Here's a
list. Have you read Beej? It isn't winsock-directed, but the crossover utility is rather high. Again, information is key. We could run this thread up into double digits, but it wouldn't be very effective for you or us.