{"action":"created","issue":{"url":"https://api.github.com/repos/datproject/dat/issues/841","repository_url":"https://api.github.com/repos/datproject/dat","labels_url":"https://api.github.com/repos/datproject/dat/issues/841/labels{/name}","comments_url":"https://api.github.com/repos/datproject/dat/issues/841/comments","events_url":"https://api.github.com/repos/datproject/dat/issues/841/events","html_url":"https://github.com/datproject/dat/issues/841","id":248298732,"number":841,"title":"Ports to expose when running dat doctor in docker?","user":{"login":"weiji14","id":23487320,"avatar_url":"https://avatars3.githubusercontent.com/u/23487320?v=4","gravatar_id":"","url":"https://api.github.com/users/weiji14","html_url":"https://github.com/weiji14","followers_url":"https://api.github.com/users/weiji14/followers","following_url":"https://api.github.com/users/weiji14/following{/other_user}","gists_url":"https://api.github.com/users/weiji14/gists{/gist_id}","starred_url":"https://api.github.com/users/weiji14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weiji14/subscriptions","organizations_url":"https://api.github.com/users/weiji14/orgs","repos_url":"https://api.github.com/users/weiji14/repos","events_url":"https://api.github.com/users/weiji14/events{/privacy}","received_events_url":"https://api.github.com/users/weiji14/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-07T03:29:22Z","updated_at":"2017-08-08T17:58:52Z","closed_at":null,"body":"Hi, I'm trying to put together a :whale: [docker](https://www.docker.com/)-ized container for dat (source [here](https://github.com/weiji14/dat-docker)) and am having problems with finding the right ports to [expose](https://docs.docker.com/engine/reference/builder/#expose) so that `dat doctor` will run properly. End goal for me is to be able to run something like `docker run --rm -it -v $PWD:/home/dat dat-docker dat share` to share files via dat across computers rather than just on localhost, in a cross-platform way (via docker)!\r\n\r\nI'm aware of #588 and have looked at the dat-doctor [js file](https://github.com/joehand/dat-doctor/blob/b48a72fa2acc5f23e25a06949384f79958d49c74/index.js), which points me to opening up port 3282, but I'm still getting the error below when running `DEBUG=dat* dat doctor` inside my docker container. Error message in Linux below:\r\n\r\n    user@host:~$ cd ~/path/to/git-cloned/dat-docker && docker build -f Dockerfile -t dat .\r\n    .\r\n    .\r\n    .\r\n    user@host:~$ docker run --rm --it -v $PWD:/home/dat -P dat bash\r\n    dat@b4fd286d4b55:~$ DEBUG=dat* dat doctor\r\n      dat dat 13.8.1 +0ms\r\n      dat node v8.2.1 +2ms\r\n      dat-doctor [info] Looking up public server address +36ms\r\n    [info] Testing connection to public peer\r\n      dat-doctor Attempting connection to doctor, doctor1.publicbits.org +51ms\r\n      dat-doctor Attempting connection to doctor, doctor1.publicbits.org +1ms\r\n      dat-doctor Discovered doctor, 45.55.78.106:8887 +522ms\r\n      dat-doctor Trying to connect to doctor, 45.55.78.106:8887 +0ms\r\n      dat-doctor Discovered doctor, 45.55.78.106:8887 +2ms\r\n      dat-doctor Trying to connect to doctor, 45.55.78.106:8887 +0ms\r\n      dat-doctor Connection established to doctor +736ms\r\n    [info] TCP ONLY - success!\r\n      dat-doctor Connection closed +249ms\r\n      dat-doctor Trying to connect to doctor, 45.55.78.106:8887 +3s\r\n      dat-doctor Trying to connect to doctor, 45.55.78.106:8887 +5s\r\n    [error] FAIL - Connection timeout, fail.\r\n    [error] FAIL - Unable to connect to public server.\r\n    [error] FAIL - Data was not echoed back from public server.\r\n    \r\n    [info] End of phase one (Public Server), moving on to phase two (Peer to Peer via DNS)\r\n    \r\n    [info] Public IP: 130.195.253.36\r\n    [info] Your public port was consistent across remote multiple hosts\r\n    \r\n    To test p2p connectivity login to another computer and run:\r\n    \r\n      dat doctor 42eaec7408c2ee9334c6d176d51c785fc2fac208a248c2547e53cc017e3f4c58\r\n    \r\n    Waiting for incoming connections... (local port: 3282)\r\n\r\nCan someone point me to where in the dat-sphere I should look at to find the port (or port ranges) I'll need to open up/expose to get `dat doctor` working?\r\n"},"comment":{"url":"https://api.github.com/repos/datproject/dat/issues/comments/321033926","html_url":"https://github.com/datproject/dat/issues/841#issuecomment-321033926","issue_url":"https://api.github.com/repos/datproject/dat/issues/841","id":321033926,"user":{"login":"joehand","id":684965,"avatar_url":"https://avatars0.githubusercontent.com/u/684965?v=4","gravatar_id":"","url":"https://api.github.com/users/joehand","html_url":"https://github.com/joehand","followers_url":"https://api.github.com/users/joehand/followers","following_url":"https://api.github.com/users/joehand/following{/other_user}","gists_url":"https://api.github.com/users/joehand/gists{/gist_id}","starred_url":"https://api.github.com/users/joehand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joehand/subscriptions","organizations_url":"https://api.github.com/users/joehand/orgs","repos_url":"https://api.github.com/users/joehand/repos","events_url":"https://api.github.com/users/joehand/events{/privacy}","received_events_url":"https://api.github.com/users/joehand/received_events","type":"User","site_admin":false},"created_at":"2017-08-08T17:58:52Z","updated_at":"2017-08-08T17:58:52Z","body":"Hi @weiji14, Dat's default port is 3282. It looks like you are exposing it correctly. \r\n\r\nThe dat doctor tries to connect via TCP and UTP. Your TCP connection succeeds but the UTP one fails. It does look like port 3282 is being used successfully.\r\n\r\nIt looks like maybe the UTP module wasn't installed successfully. You should be able to still connect via Dat but may struggle with hole-punching if UTP isn't working.\r\n\r\nWas there a warning or something with `npm install`?"}}
{"actor":{"display_login":"joehand"}}