I have posted this question on stackoverflow.com but one of the users suggested me to post here as it was not related to programming. Here is my question: I am using socket.Connect method to connect to a host (ex. yahoo.com) using visual studio 2010 on Windows 7 machine but I am getting an error "A socket operation was attempted to an unreachable network" . What are the possible reasons that causing the above error and how can I resolve them?

link|improve this question
Does this occur for all hosts, and does the connection work from another program, e.g. a web browser? – jcrawfordor Apr 19 '11 at 19:36
Yes, I tried gmail.com, hotmail.com same error and I can browse the hosts using web browser. Do you think is it something with Firewall blocking my application to connect to host? – MNVR Apr 19 '11 at 19:39
Yes, I think a firewall is a good bet, but I don't know that I have a solution. What firewall(s) do you have running? – jcrawfordor Apr 19 '11 at 19:41
I am using Comodo – MNVR Apr 19 '11 at 19:44
You might want to try disabling Comodo entirely and then testing. If that fixes it, look through Comodo's settings to see how you can enable network access for a program. – jcrawfordor Apr 19 '11 at 19:48
show 1 more comment
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.