{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-event-hubs-node/issues/12","repository_url":"https://api.github.com/repos/Azure/azure-event-hubs-node","labels_url":"https://api.github.com/repos/Azure/azure-event-hubs-node/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-event-hubs-node/issues/12/comments","events_url":"https://api.github.com/repos/Azure/azure-event-hubs-node/issues/12/events","html_url":"https://github.com/Azure/azure-event-hubs-node/issues/12","id":199674514,"number":12,"title":"ETIMEDOUT 40.83.177.42:8883 using azure-iot-device-mqtt ","user":{"login":"tameraw","id":9868777,"avatar_url":"https://avatars.githubusercontent.com/u/9868777?v=3","gravatar_id":"","url":"https://api.github.com/users/tameraw","html_url":"https://github.com/tameraw","followers_url":"https://api.github.com/users/tameraw/followers","following_url":"https://api.github.com/users/tameraw/following{/other_user}","gists_url":"https://api.github.com/users/tameraw/gists{/gist_id}","starred_url":"https://api.github.com/users/tameraw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tameraw/subscriptions","organizations_url":"https://api.github.com/users/tameraw/orgs","repos_url":"https://api.github.com/users/tameraw/repos","events_url":"https://api.github.com/users/tameraw/events{/privacy}","received_events_url":"https://api.github.com/users/tameraw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-09T22:02:08Z","updated_at":"2017-01-09T22:02:09Z","closed_at":null,"body":"_From @tameraw on January 9, 2017 21:46_\n\n_From @albhardy on December 21, 2016 8:17_\n\n# Context\r\n- **OS and version used:** Windows 10\r\n- **Node.js version:** v6.4.0\r\n- **npm version:** 3.10.3\r\n- **list of installed packages:** \r\n\r\n      simulateddevice@1.0.0 \r\n      D:\\DEV\\AZURE\\IOTHUB\\simulateddevice\r\n        +-- azure-iot-device@1.1.2\r\n        | +-- azure-iot-common@1.1.2\r\n        | | `-- crypto@0.0.3\r\n        | +-- azure-iot-http-base@1.1.2\r\n        | +-- azure-storage@1.4.0\r\n        | | +-- browserify-mime@1.2.9\r\n        | | +-- extend@1.2.1\r\n        | | +-- json-edm-parser@0.1.2\r\n        | | | `-- jsonparse@1.2.0\r\n        | | +-- node-uuid@1.4.7\r\n        | | +-- readable-stream@2.0.6\r\n        | | | +-- core-util-is@1.0.2\r\n        | | | +-- isarray@1.0.0\r\n        | | | +-- process-nextick-args@1.0.7\r\n        | | | +-- string_decoder@0.10.31\r\n        | | | `-- util-deprecate@1.0.2\r\n        | | +-- request@2.74.0\r\n        | | | +-- aws-sign2@0.6.0\r\n        | | | +-- aws4@1.5.0\r\n        | | | +-- bl@1.1.2\r\n        | | | +-- caseless@0.11.0\r\n        | | | +-- combined-stream@1.0.5\r\n        | | | | `-- delayed-stream@1.0.0\r\n        | | | +-- extend@3.0.0\r\n        | | | +-- forever-agent@0.6.1\r\n        | | | +-- form-data@1.0.1\r\n        | | | | `-- async@2.1.4\r\n        | | | +-- har-validator@2.0.6\r\n        | | | | +-- chalk@1.1.3\r\n        | | | | | +-- ansi-styles@2.2.1\r\n        | | | | | +-- escape-string-regexp@1.0.5\r\n        | | | | | +-- has-ansi@2.0.0\r\n        | | | | | | `-- ansi-regex@2.0.0\r\n        | | | | | +-- strip-ansi@3.0.1\r\n        | | | | | `-- supports-color@2.0.0\r\n        | | | | +-- commander@2.9.0\r\n        | | | | | `-- graceful-readlink@1.0.1\r\n        | | | | +-- is-my-json-valid@2.15.0\r\n        | | | | | +-- generate-function@2.0.0\r\n        | | | | | +-- generate-object-property@1.2.0\r\n        | | | | | | `-- is-property@1.0.2\r\n        | | | | | `-- jsonpointer@4.0.0\r\n        | | | | `-- pinkie-promise@2.0.1\r\n        | | | |   `-- pinkie@2.0.4\r\n        | | | +-- hawk@3.1.3\r\n        | | | | +-- boom@2.10.1\r\n        | | | | +-- cryptiles@2.0.5\r\n        | | | | +-- hoek@2.16.3\r\n        | | | | `-- sntp@1.0.9\r\n        | | | +-- http-signature@1.1.1\r\n        | | | | +-- assert-plus@0.2.0\r\n        | | | | +-- jsprim@1.3.1\r\n        | | | | | +-- extsprintf@1.0.2\r\n        | | | | | +-- json-schema@0.2.3\r\n        | | | | | `-- verror@1.3.6\r\n        | | | | `-- sshpk@1.10.1\r\n        | | | |   +-- asn1@0.2.3\r\n        | | | |   +-- assert-plus@1.0.0\r\n        | | | |   +-- bcrypt-pbkdf@1.0.0\r\n        | | | |   +-- dashdash@1.14.1\r\n        | | | |   | `-- assert-plus@1.0.0\r\n        | | | |   +-- ecc-jsbn@0.1.1\r\n        | | | |   +-- getpass@0.1.6\r\n        | | | |   | `-- assert-plus@1.0.0\r\n        | | | |   +-- jodid25519@1.0.2\r\n        | | | |   +-- jsbn@0.1.0\r\n        | | | |   `-- tweetnacl@0.14.5\r\n        | | | +-- is-typedarray@1.0.0\r\n        | | | +-- isstream@0.1.2\r\n        | | | +-- json-stringify-safe@5.0.1\r\n        | | | +-- mime-types@2.1.13\r\n        | | | | `-- mime-db@1.25.0\r\n        | | | +-- oauth-sign@0.8.2\r\n        | | | +-- qs@6.2.1\r\n        | | | +-- stringstream@0.0.5\r\n        | | | +-- tough-cookie@2.3.2\r\n        | | | | `-- punycode@1.4.1\r\n        | | | `-- tunnel-agent@0.4.3\r\n        | | +-- underscore@1.4.4\r\n        | | +-- validator@3.22.2\r\n        | | +-- xml2js@0.2.7\r\n        | | | `-- sax@0.5.2\r\n        | | `-- xmlbuilder@0.4.3\r\n        | +-- debug@2.4.5\r\n        | | `-- ms@0.7.2\r\n        | +-- es5-shim@4.5.9\r\n        | +-- lodash@4.17.2\r\n        | +-- machina@2.0.0\r\n        | | `-- lodash@3.10.1\r\n        | `-- traverse@0.6.6\r\n        +-- azure-iot-device-amqp@1.1.2\r\n        | `-- azure-iot-amqp-base@1.1.2\r\n        |   +-- amqp10@3.3.2\r\n        |   | +-- bluebird@3.4.6\r\n        |   | +-- buffer-builder@0.2.0\r\n        |   | +-- node-amqp-encoder@0.0.2\r\n        |   | +-- node-int64@0.4.0\r\n        |   | +-- stately.js@1.3.0\r\n        |   | `-- uuid@2.0.3\r\n        |   +-- amqp10-transport-ws@0.0.5\r\n        |   | `-- nodejs-websocket@1.7.1\r\n        |   +-- sinon@1.17.6\r\n        |   | +-- formatio@1.1.1\r\n        |   | +-- lolex@1.3.2\r\n        |   | +-- samsam@1.1.2\r\n        |   | `-- util@0.10.3\r\n        |   |   `-- inherits@2.0.1\r\n        |   `-- sinon-as-promised@4.0.2\r\n        |     +-- create-thenable@1.0.2\r\n        |     | +-- object.omit@2.0.1\r\n        |     | | +-- for-own@0.1.4\r\n        |     | | | `-- for-in@0.1.6\r\n        |     | | `-- is-extendable@0.1.1\r\n        |     | `-- unique-concat@0.2.2\r\n        |     `-- native-promise-only@0.8.1\r\n        +-- azure-iot-device-http@1.1.2\r\n        | `-- node-crontab@0.0.8\r\n        |   `-- cron-parser@0.3.6\r\n        `-- azure-iot-device-mqtt@1.1.2\r\n          `-- mqtt@1.14.1\r\n            +-- commist@1.0.0\r\n            | `-- leven@1.0.2\r\n            +-- concat-stream@1.6.0\r\n            | +-- readable-stream@2.2.2\r\n            | | `-- buffer-shims@1.0.0\r\n            | `-- typedarray@0.0.6\r\n            +-- end-of-stream@1.1.0\r\n            | `-- once@1.3.3\r\n            |   `-- wrappy@1.0.2\r\n            +-- help-me@1.0.1\r\n            | +-- callback-stream@1.1.0\r\n            | +-- glob-stream@5.3.5\r\n            | | +-- extend@3.0.0\r\n            | | +-- glob@5.0.15\r\n            | | | +-- inflight@1.0.6\r\n            | | | +-- minimatch@3.0.3\r\n            | | | | `-- brace-expansion@1.1.6\r\n            | | | |   +-- balanced-match@0.4.2\r\n            | | | |   `-- concat-map@0.0.1\r\n            | | | `-- path-is-absolute@1.0.1\r\n            | | +-- glob-parent@3.1.0\r\n            | | | +-- is-glob@3.1.0\r\n            | | | | `-- is-extglob@2.1.1\r\n            | | | `-- path-dirname@1.0.2\r\n            | | +-- micromatch@2.3.11\r\n            | | | +-- arr-diff@2.0.0\r\n            | | | | `-- arr-flatten@1.0.1\r\n            | | | +-- array-unique@0.2.1\r\n            | | | +-- braces@1.8.5\r\n            | | | | +-- expand-range@1.8.2\r\n            | | | | | `-- fill-range@2.2.3\r\n            | | | | |   +-- is-number@2.1.0\r\n            | | | | |   +-- isobject@2.1.0\r\n            | | | | |   +-- randomatic@1.1.6\r\n            | | | | |   `-- repeat-string@1.6.1\r\n            | | | | +-- preserve@0.2.0\r\n            | | | | `-- repeat-element@1.1.2\r\n            | | | +-- expand-brackets@0.1.5\r\n            | | | | `-- is-posix-bracket@0.1.1\r\n            | | | +-- extglob@0.3.2\r\n            | | | | `-- is-extglob@1.0.0\r\n            | | | +-- filename-regex@2.0.0\r\n            | | | +-- is-extglob@1.0.0\r\n            | | | +-- is-glob@2.0.1\r\n            | | | +-- kind-of@3.1.0\r\n            | | | | `-- is-buffer@1.1.4\r\n            | | | +-- normalize-path@2.0.1\r\n            | | | +-- parse-glob@3.0.4\r\n            | | | | +-- glob-base@0.3.0\r\n            | | | | | +-- glob-parent@2.0.0\r\n            | | | | | `-- is-glob@2.0.1\r\n            | | | | |   `-- is-extglob@1.0.0\r\n            | | | | +-- is-dotfile@1.0.2\r\n            | | | | +-- is-extglob@1.0.0\r\n            | | | | `-- is-glob@2.0.1\r\n            | | | `-- regex-cache@0.4.3\r\n            | | |   +-- is-equal-shallow@0.1.3\r\n            | | |   `-- is-primitive@2.0.0\r\n            | | +-- ordered-read-streams@0.3.0\r\n            | | | `-- is-stream@1.1.0\r\n            | | +-- through2@0.6.5\r\n            | | | `-- readable-stream@1.0.34\r\n            | | |   `-- isarray@0.0.1\r\n            | | +-- to-absolute-glob@0.1.1\r\n            | | | `-- extend-shallow@2.0.1\r\n            | | `-- unique-stream@2.2.1\r\n            | |   +-- json-stable-stringify@1.0.1\r\n            | |   | `-- jsonify@0.0.0\r\n            | |   `-- through2-filter@2.0.0\r\n            | `-- through2@2.0.3\r\n            |   `-- readable-stream@2.2.2\r\n            +-- inherits@2.0.3\r\n            +-- minimist@1.2.0\r\n            +-- mqtt-connection@2.1.1\r\n            | +-- reduplexer@1.1.0\r\n            | | `-- readable-stream@1.0.34\r\n            | |   `-- isarray@0.0.1\r\n            | `-- through2@0.6.5\r\n            |   `-- readable-stream@1.0.34\r\n            |     `-- isarray@0.0.1\r\n            +-- mqtt-packet@3.4.7\r\n            | `-- bl@0.9.5\r\n            |   `-- readable-stream@1.0.34\r\n            |     `-- isarray@0.0.1\r\n            +-- pump@1.0.2\r\n            +-- readable-stream@1.0.34\r\n            | `-- isarray@0.0.1\r\n            +-- reinterval@1.1.0\r\n            +-- split2@2.1.0\r\n            +-- websocket-stream@3.3.3\r\n            | +-- duplexify@3.5.0\r\n            | | +-- end-of-stream@1.0.0\r\n            | | `-- stream-shift@1.0.0\r\n            | `-- ws@1.1.1\r\n            |   +-- options@0.0.6\r\n            |   `-- ultron@1.0.2\r\n            `-- xtend@4.0.1\r\n   \r\n<!-- please be as detailed as possible: which feature has a problem, how often does it fail,  -->\r\n\r\n# Code sample exhibiting the issue: \r\nI run [simple_sample_device_with_sas.js](https://github.com/Azure/azure-iot-sdk-node/blob/master/device/samples/simple_sample_device_with_sas.js) example and experienced following protocols are not working:\r\n- var Protocol = require('azure-iot-device-mqtt').Mqtt results in `Could not connect: connect ETIMEDOUT 40.83.177.42:8883` \r\n- var Protocol = require('azure-iot-device-amqp').Amqp; results in `Could not connect: Error: AMQP Transport: Could not connect`\r\n\r\nHowever, these protocols work:\r\n- var Protocol = require('azure-iot-device-amqp').AmqpWs;\r\n- var Protocol = require('azure-iot-device-http').Http;\r\n\r\nIs there anything else that needs to be configured to enable send/receive MQTT on Windows? I also noticed `Device Explorer` is also unable to receive message from IOT Hub:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1732018/21381874/bea9db8c-c798-11e6-96a1-07bf971eaea9.png)\r\n\r\n\n\n_Copied from original issue: Azure/azure-iot-sdk-node#6_\n\n_Copied from original issue: Azure/azure-event-hubs-dotnet#88_"},"comment":{"url":"https://api.github.com/repos/Azure/azure-event-hubs-node/issues/comments/271421685","html_url":"https://github.com/Azure/azure-event-hubs-node/issues/12#issuecomment-271421685","issue_url":"https://api.github.com/repos/Azure/azure-event-hubs-node/issues/12","id":271421685,"user":{"login":"tameraw","id":9868777,"avatar_url":"https://avatars.githubusercontent.com/u/9868777?v=3","gravatar_id":"","url":"https://api.github.com/users/tameraw","html_url":"https://github.com/tameraw","followers_url":"https://api.github.com/users/tameraw/followers","following_url":"https://api.github.com/users/tameraw/following{/other_user}","gists_url":"https://api.github.com/users/tameraw/gists{/gist_id}","starred_url":"https://api.github.com/users/tameraw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tameraw/subscriptions","organizations_url":"https://api.github.com/users/tameraw/orgs","repos_url":"https://api.github.com/users/tameraw/repos","events_url":"https://api.github.com/users/tameraw/events{/privacy}","received_events_url":"https://api.github.com/users/tameraw/received_events","type":"User","site_admin":false},"created_at":"2017-01-09T22:02:09Z","updated_at":"2017-01-09T22:02:09Z","body":"_From @olivierbloch on December 21, 2016 16:18_\n\nHi @albhardy\r\nAll the symptoms you report seem to indicate that you are running behind a firewall that blocks the amqp amd mqtt protocols ports.\r\nYou can use this tool to confirm:\r\nhttps://github.com/Azure/iothub-diagnostics\r\nNote that ports being blocked by firewalls is the main reason why we also support these protocols (amqp and mqtt) over WebSockets.\r\n"}}
{"actor":{"display_login":"tameraw"}}