Urgent! Socket Problem

M

Ms .NET

Hi,

i have a Listerner in my base. Two application are derived in my base.
when i start my first app, no problem
when i start the second app the following error pops up

"Only one usage of each socket address (protocol/network address/port)
is normally permitted"

i need to have multiple listeners on the same port, is it possible and is
there a way to work around it.

thanks
 
M

Michael Groeger

Hi,

you could try to set the socket option ReuseAddress:
Socket.SetSocketOption(SocketOptionName.ReuseAddress). But I don't know
where your data goes if you then open two server sockets listening on the
same port...

Regards,
Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top