How to make winsock control listen on an used port 
Author Message
 How to make winsock control listen on an used port

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



Mon, 06 Sep 2004 05:12:44 GMT  
 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.



Mon, 06 Sep 2004 12:57:48 GMT  
 How to make winsock control listen on an used port
Thanks a lot ...


Tue, 07 Sep 2004 05:21:36 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Listen to a port(Using Winsock)

2. listening on same port using winsock

3. Q: How to Listen to Open Port using Winsock (TCP/IP)

4. VB Port Listening ** Only listening not bound to a port

5. Winsock Control Error 2 winsock.listen

6. Using Sockets/Ports to listen for POP3 traffic

7. Finding and listening to ports used by other programs

8. Listen to port or port sniff...

9. Listen again on a Winsock control

10. Listen again on a Winsock control

11. Winsock Control LISTENING can not bind multiple listeners to same address on NT.

12. Win98 makes com1 unavailable to DOS until Win app uses port

 

 
Powered by phpBB® Forum Software