
How to make winsock control listen on an used port
Quote:
>The winsock control acting as a server which if specified to listen on
>standard ports like 80 (used for http) gets an error - 10048 address
>in use.
>Is it possible to make winsock control listen on such standard(used)
>ports and if yes how ?
>Thanks in advance for any help.
>Satish
No two applications can listen on the same port on the same IP. You
couldn't have two FTP servers both running on port 21. Image (if it
were possible) having two printers plugged into the same parallel
port. When you print something, which printer gets the data? Thats
sorta the same as trying to have to TCP/IP applications listen on the
same port, which would get the data?
You might have PWS (windows 98) or IIS (Win2k/XP) installed, they
listen on 80 (http). Shut those services down first and then your
program can listen on port 80 just fine. There are no restrictions as
far as what port the winsock control can listen on as long as the port
you are trying to listen on is free.