windows 7, connect 127.0.0.1, got socket error 10049

hi, all
I have 2 applications, tcp server and tcp client which connect using socket, I run both in the local computer, set the server listening ip as 127.0.0.1, set the client ip as my local physical ip. But winsock error 10049 occur when the client trying to connect 127.0.0.1, the error means 'Cannot assign requested address'.

I can ping 127.0.0.1 and localhost. I have turned off Firewall and stopped the Firewall service. These 2 applications works fine in Win Xp, but not working in Win 7, so I don't know is there network setting or security setting need for windows 7, to let 127.0.0.1 can connect local physical ip address through socket?

thanks a lot.


Coding for living
Answer
Answer

Hi,

I would suggest you to post this issue in TechNet forum. As this would be the best forum to assist you with this issue.
http://social.technet.microsoft.com/Forums/en-US/w7itpronetworking/threads


Thanks and Regards
Umesh P - Microsoft Support.

Visit our Microsoft Answers Feedback Forum and let us know what you think.

[If this post helps to resolve your issue, please click the "Mark as Answer" or "Helpful" button at the top of this message. By marking a post as Answered, or Helpful you help others find the answer faster.]

1 person found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Answer
Answer

Hi

Maybe this can Help, http://msdn.microsoft.com/en-us/library/ms740548%28VS.85%29.aspx

Toward the end there is a comment about Win 7 - Limitations on Raw Sockets.

 

 


Jack-MVP Windows Networking. WWW.EZLAN.NET
Jack MVP, Microsoft Windows Desktop Experience-Networking.

www.EZLAN.net

1 person found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated November 3, 2023 Views 4,461 Applies to: