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).
Merge pull request #3 from youkinjoh/fallback_ws_connection
Ensure HTTP requests to WebSocket endpoint URLs are valid WebSocket requests