{"action":"created","issue":{"url":"https://api.github.com/repos/Storj/farmer/issues/32","repository_url":"https://api.github.com/repos/Storj/farmer","labels_url":"https://api.github.com/repos/Storj/farmer/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/Storj/farmer/issues/32/comments","events_url":"https://api.github.com/repos/Storj/farmer/issues/32/events","html_url":"https://github.com/Storj/farmer/issues/32","id":151604873,"number":32,"title":"tunnel port range ignored","user":{"login":"littleskunk","id":6333390,"avatar_url":"https://avatars.githubusercontent.com/u/6333390?v=3","gravatar_id":"","url":"https://api.github.com/users/littleskunk","html_url":"https://github.com/littleskunk","followers_url":"https://api.github.com/users/littleskunk/followers","following_url":"https://api.github.com/users/littleskunk/following{/other_user}","gists_url":"https://api.github.com/users/littleskunk/gists{/gist_id}","starred_url":"https://api.github.com/users/littleskunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littleskunk/subscriptions","organizations_url":"https://api.github.com/users/littleskunk/orgs","repos_url":"https://api.github.com/users/littleskunk/repos","events_url":"https://api.github.com/users/littleskunk/events{/privacy}","received_events_url":"https://api.github.com/users/littleskunk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-28T10:35:13Z","updated_at":"2016-04-28T11:12:25Z","closed_at":null,"body":"My config:\r\n```\r\n  \"network\": {\r\n    \"address\": \"0.0.0.0\",\r\n    \"port\": 4000,\r\n    \"seeds\": [\r\n      \"storj://api.storj.io:8443/593844dc7f0076a1aeda9a6b9788af17e67c1052\"\r\n    ],\r\n    \"opcodes\": [...],\r\n    \"forward\": true,\r\n    \"tunnels\": 2,\r\n    \"gateways\": {\r\n      \"min\": 5001,\r\n      \"max\": 5002\r\n    }\r\n  },\r\n```\r\n\r\nTunnel ignores the range and start with port 4001\r\n```\r\nfarmer:~# netstat -a\r\nActive Internet connections (servers and established)\r\nProto Recv-Q Send-Q Local Address           Foreign Address         State\r\ntcp        0      0 *:4000                  *:*                     LISTEN\r\ntcp        0      0 *:4001                  *:*                     LISTEN\r\n```"},"comment":{"url":"https://api.github.com/repos/Storj/farmer/issues/comments/215391325","html_url":"https://github.com/Storj/farmer/issues/32#issuecomment-215391325","issue_url":"https://api.github.com/repos/Storj/farmer/issues/32","id":215391325,"user":{"login":"gordonwritescode","id":1188875,"avatar_url":"https://avatars.githubusercontent.com/u/1188875?v=3","gravatar_id":"","url":"https://api.github.com/users/gordonwritescode","html_url":"https://github.com/gordonwritescode","followers_url":"https://api.github.com/users/gordonwritescode/followers","following_url":"https://api.github.com/users/gordonwritescode/following{/other_user}","gists_url":"https://api.github.com/users/gordonwritescode/gists{/gist_id}","starred_url":"https://api.github.com/users/gordonwritescode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordonwritescode/subscriptions","organizations_url":"https://api.github.com/users/gordonwritescode/orgs","repos_url":"https://api.github.com/users/gordonwritescode/repos","events_url":"https://api.github.com/users/gordonwritescode/events{/privacy}","received_events_url":"https://api.github.com/users/gordonwritescode/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T11:12:25Z","updated_at":"2016-04-28T11:12:25Z","body":"I know this is a little confusing, but the tunnel port is for the tunnel *server*, and by default it binds to your network port + 1. The is the entry point for all clients to establish a tunnel. \r\n\r\nThe *gateways* are the dedicated entry points for others to communicate with a client that is connected to the tunnel server. "}}