{"action":"created","issue":{"url":"https://api.github.com/repos/influxdb/influxdb-ruby/issues/84","labels_url":"https://api.github.com/repos/influxdb/influxdb-ruby/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb-ruby/issues/84/comments","events_url":"https://api.github.com/repos/influxdb/influxdb-ruby/issues/84/events","html_url":"https://github.com/influxdb/influxdb-ruby/issues/84","id":71010721,"number":84,"title":"UDP Connectivity not working","user":{"login":"blewa","id":658174,"avatar_url":"https://avatars.githubusercontent.com/u/658174?v=3","gravatar_id":"","url":"https://api.github.com/users/blewa","html_url":"https://github.com/blewa","followers_url":"https://api.github.com/users/blewa/followers","following_url":"https://api.github.com/users/blewa/following{/other_user}","gists_url":"https://api.github.com/users/blewa/gists{/gist_id}","starred_url":"https://api.github.com/users/blewa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blewa/subscriptions","organizations_url":"https://api.github.com/users/blewa/orgs","repos_url":"https://api.github.com/users/blewa/repos","events_url":"https://api.github.com/users/blewa/events{/privacy}","received_events_url":"https://api.github.com/users/blewa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-26T04:53:59Z","updated_at":"2015-08-05T22:00:58Z","closed_at":null,"body":"When following the example from the README the client still attempts to connect through TCP on the default port:\r\n\r\n```\r\n2.2.1 :001 > require 'influxdb'\r\n => true \r\n2.2.1 :002 > host = '127.0.0.1'\r\n => \"127.0.0.1\" \r\n2.2.1 :003 > port = 4444\r\n => 4444 \r\n2.2.1 :004 > \r\n2.2.1 :005 >   influxdb = InfluxDB::Client.new :udp => { :host => host, :port => port }\r\n => #<InfluxDB::Client:0x00000001a00590 @hosts=[\"localhost\"], @port=8086, @username=\"root\", @password=\"root\", @use_ssl=false, @time_precision=\"s\", @initial_delay=0.01, @max_delay=30, @open_timeout=5, @read_timeout=300, @async=false, @retry=-1> \r\n2.2.1 :006 > \r\n2.2.1 :007 >   name = 'hitchhiker'\r\n => \"hitchhiker\" \r\n2.2.1 :008 > \r\n2.2.1 :009 >   data = {\r\n2.2.1 :010 >       :answer => 42,\r\n2.2.1 :011 >       :question => \"life the universe and everything?\"\r\n2.2.1 :012?>   }\r\n => {:answer=>42, :question=>\"life the universe and everything?\"} \r\n2.2.1 :013 > \r\n2.2.1 :014 >   influxdb.write_point(name, data)\r\nE, [2015-04-25T21:48:36.342313 #21026] ERROR -- : [InfluxDB] Failed to contact host localhost: #<Errno::ECONNREFUSED: Connection refused - connect(2) for \"localhost\" port 8086> - retrying in 0.01s.\r\nE, [2015-04-25T21:48:36.352889 #21026] ERROR -- : [InfluxDB] Failed to contact host localhost: #<Errno::ECONNREFUSED: Connection refused - connect(2) for \"localhost\" port 8086> - retrying in 0.02s.\r\nE, [2015-04-25T21:48:36.373542 #21026] ERROR -- : [InfluxDB] Failed to contact host localhost: #<Errno::ECONNREFUSED: Connection refused - connect(2) for \"localhost\" port 8086> - retrying in 0.04s.\r\nE, [2015-04-25T21:48:36.414519 #21026] ERROR -- : [InfluxDB] Failed to contact host localhost: #<Errno::ECONNREFUSED: Connection refused - connect(2) for \"localhost\" port 8086> - retrying in 0.08s.\r\nE, [2015-04-25T21:48:36.495320 #21026] ERROR -- : [InfluxDB] Failed to contact host localhost: #<Errno::ECONNREFUSED: Connection refused - connect(2) for \"localhost\" port 8086> - retrying in 0.16s.\r\nE, [2015-04-25T21:48:36.655993 #21026] ERROR -- : [InfluxDB] Failed to contact host localhost: #<Errno::ECONNREFUSED: Connection refused - connect(2) for \"localhost\" port 8086> - retrying in 0.32s.\r\n```\r\n\r\nValidated the same behavior in jruby-1.7.19."},"comment":{"url":"https://api.github.com/repos/influxdb/influxdb-ruby/issues/comments/128162540","html_url":"https://github.com/influxdb/influxdb-ruby/issues/84#issuecomment-128162540","issue_url":"https://api.github.com/repos/influxdb/influxdb-ruby/issues/84","id":128162540,"user":{"login":"williampratt","id":94806,"avatar_url":"https://avatars.githubusercontent.com/u/94806?v=3","gravatar_id":"","url":"https://api.github.com/users/williampratt","html_url":"https://github.com/williampratt","followers_url":"https://api.github.com/users/williampratt/followers","following_url":"https://api.github.com/users/williampratt/following{/other_user}","gists_url":"https://api.github.com/users/williampratt/gists{/gist_id}","starred_url":"https://api.github.com/users/williampratt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williampratt/subscriptions","organizations_url":"https://api.github.com/users/williampratt/orgs","repos_url":"https://api.github.com/users/williampratt/repos","events_url":"https://api.github.com/users/williampratt/events{/privacy}","received_events_url":"https://api.github.com/users/williampratt/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T22:00:58Z","updated_at":"2015-08-05T22:00:58Z","body":"Seems to work for me. Make the commands a script and run it with `strace -f <path/to/script>` and share the output."}}