enabled connection between OS X and Ubuntu.

 * OS X and Ubuntu could not be connected.
 * could not resolve the host name of another OS.
 * added fallback mechanism(host name -> IPv4 -> IPv6).