Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am getting this error "only one usage of each socket address (protocol/network address/port) is normally permitted".

Can you please give me your suggestion or solutions


Thanks
Posted
Comments
Richard MacCutchan 12-Nov-14 9:35am    
Only use a socket address once.
[no name] 12-Nov-14 9:42am    
Ok Thanks. Can you please let me any other way if you know

1 solution

Santhakumar Munuswamy replied:

Ok Thanks. Can you please let me any other way if you know
No. If you try to listen for new TCP connection at the same exact address in two different places, and some client is trying to connect, how a computer could possibly know what thread to wake up and what to connect with?

—SA
 
Share this answer
 
Comments
Maciej Los 12-Nov-14 11:41am    
Sergey, for me it sounds like comment...
(i'm abstaining from voting)
Sergey Alexandrovich Kryukov 12-Nov-14 11:52am    
Whatever. But I think, this only "structurally" functions as a comment (reply to a comment), but the idea addresses directly the essence of the question. OP needs to understand exactly that, what does the error message mean. Do you see another way to help?

By the way, it's really difficult to help the one with such a pattern of thinking (pretty usual on these pages):
Error message: "Don't do AAA". Question: "How to do AAA?" :-)

—SA
Maciej Los 12-Nov-14 12:00pm    
Ok, now i got your point of view. I'd change interrogative sentence to the stating sentence to avoid misunderstanding.
BTW: voted ;)
Sergey Alexandrovich Kryukov 12-Nov-14 12:25pm    
Thank you, Maciej. I would change the phrasing if I cared for the formal status of the post so much. Giving the idea to help someone is more important.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900