windows 7 - A socket operation was attempted to an unreachable host error

07
2014-07
  • João Antunes

    I'm developing a program in C# that uses a UDP multicast system. My Multicast group it's using 224.0.0.1 address to communicate.

    In all Windows 8 machines it is working fine. However, in a Win 7 64x machine the following error occurs:

    A socket operation was attempted to an unreachable host.

    Any suggestions what i have to do on the Win7 64x machine, to work?

    I have already tried to check route table (on cmd prompt: route print). I saw that only 244.0.0 is being mapped and it works with 244.0.0.0. Thing is I want to use 244.0.0.1, since I only want to use the multicast in a local network.

    When I try to make a route add command like this:

    route ADD 224.0.0.1 MASK 192.168.2.1 192.168.2.26 
    

    (or anything similar) it says:

    The route addition failed: The parameter is incorrect.
    
  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    osx - MySQL socket connections working, but not port connections
  • Neil

    I installed MySQL community 5.1.45 on my Snow Leopard 10.6, using the pkg from their site. I had previously installed a MySQL binary from entropy.ch. In the previous installation, the connections were working fine before I upgrade to Snow Leopard. In Snow Leopard, both the installations are problematic.

    Using an app called Sequel Pro, if I connect with the socket operation, it connects properly. However, a standard connection with the same credentials doesn't work. From what I've understood, socket connections happen on the machine itself between processes, whereas normal connections occur over the network/ports, in this case a loopback to my machine, since the server and client are both on the same machine.

    My new CakePHP installation isn't being able to connect to the db with the root credentials I provided. Btw, I've been starting the MySQL server using the Preference Pane.

    When I tried running mysqld from terminal, it gave me:

    100323 1:54:37 [Warning] Can't create test file /usr/local/mysql-5.1.45-osx10.6-x86_64/data/mbp.lower-test 100323 1:54:37 [Warning] Can't create test file /usr/local/mysql-5.1.45-osx10.6-x86_64/data/mbp.lower-test mysqld: Can't change dir to '/usr/local/mysql-5.1.45-osx10.6-x86_64/data/' (Errcode: 13) 100323 1:54:37 [ERROR] Aborting

    100323 1:54:37 [Note] mysqld: Shutdown complete

    mbp is the name of my machine. How do I fix this so that my webserver can connect to the mysql server?


  • Related Answers
  • Craig

    The permissions in mysql for socket connections are separate from the network connections.

    This will allow network connections:

    grant all privileges on dbname.* to USERNAME@% identified by 'password'