|
-
Jul 6th, 2000, 07:51 PM
#1
Thread Starter
Frenzied Member
Using winsock you define what port your using, how many ports are there? I know there is over 1000 because I usually use 1000, 1001, and 1002.
-
Jul 6th, 2000, 09:39 PM
#2
Hyperactive Member
If memory serves me right, port numbers are a 16 bit number so there are 2^16 ports available or 65536. Port 1 - 1024 are for assigned for specific standard protocols such as http, ftp, pop and so on. 1024 and up are free to use.
"People who think they know everything are a great annoyance to those of us who do."
-
Jul 7th, 2000, 06:06 AM
#3
Fanatic Member
No. of Ports
Yeah there are 256 * 256 = 0xFFFF (or FFFFh if you will) ports.
You are totally correct, noone. In English, there are 65536 ports, or maybe just 65535 ... I am not sure. What is port 0 used for??? :-)
-
Jul 7th, 2000, 08:19 AM
#4
Thread Starter
Frenzied Member
Originally posted by noone
Port 1 - 1024 are for assigned for specific standard protocols such as http, ftp, pop and so on. 1024 and up are free to use.
So I might be getting errors while online becuase Im using prot 1000 for my game? Do you think I should change it to like 2000 or something?
-
Jul 7th, 2000, 03:18 PM
#5
Hyperactive Member
It would probably be a good idea to use something above 1024 for your game, but I dont think it's totally essential. Certain operating systems (like some flavours of Unix) will require you to have special permissions before you run a program that listens to a port below 1024, but I dont think Windows will do that. Port 1000 is probably unnasigned, but sometime in te future, it may be assigned to some protocol.
"People who think they know everything are a great annoyance to those of us who do."
-
Jul 10th, 2000, 06:56 AM
#6
Lively Member
Regards,
 Paul Rivoli 
---------------------
[email protected]
http://members.dingoblue.net.au/~privoli
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|