{"action":"created","issue":{"url":"https://api.github.com/repos/FreeRDP/FreeRDP/issues/2282","labels_url":"https://api.github.com/repos/FreeRDP/FreeRDP/issues/2282/labels{/name}","comments_url":"https://api.github.com/repos/FreeRDP/FreeRDP/issues/2282/comments","events_url":"https://api.github.com/repos/FreeRDP/FreeRDP/issues/2282/events","html_url":"https://github.com/FreeRDP/FreeRDP/issues/2282","id":52361993,"number":2282,"title":"Fails to connect with RD Gateway 8.1. Gateway replies with: 503 RPC Error 5","user":{"login":"oblique","id":194040,"avatar_url":"https://avatars.githubusercontent.com/u/194040?v=3","gravatar_id":"","url":"https://api.github.com/users/oblique","html_url":"https://github.com/oblique","followers_url":"https://api.github.com/users/oblique/followers","following_url":"https://api.github.com/users/oblique/following{/other_user}","gists_url":"https://api.github.com/users/oblique/gists{/gist_id}","starred_url":"https://api.github.com/users/oblique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oblique/subscriptions","organizations_url":"https://api.github.com/users/oblique/orgs","repos_url":"https://api.github.com/users/oblique/repos","events_url":"https://api.github.com/users/oblique/events{/privacy}","received_events_url":"https://api.github.com/users/oblique/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2014-12-18T13:10:41Z","updated_at":"2015-06-01T07:00:20Z","closed_at":null,"body":"In the company that I work they have RD Gateway 8.1. I use the following to establish a connection to my work computer:\r\n\r\n```\r\nxfreerdp /g:rdgserver.company.com /gd:companydomain /gu:myusername /gp:mypassword /d:companydomain /u:myusername /p:mypassword /v:internal.computer-001\r\n```\r\n\r\nI compiled FreeRDP with `-DWITH_DEBUG_TSG=ON` and I get the following output:\r\n```\r\n[14:50:07:447] [7393:1302730496] [ERROR][com.freerdp.client.x11] - Property 361 does not exist\r\n[14:50:07:447] [7393:1302730496] [INFO][com.freerdp.core.nego] - Detecting if host can be reached locally. - This might take some time.\r\n[14:50:07:447] [7393:1302730496] [INFO][com.freerdp.core.nego] - To disable auto detection use /gateway-usage-method:direct\r\n[14:50:07:680] [7393:1302730496] [ERROR][com.freerdp.core] - getaddrinfo: Name or service not known\r\n[14:50:08:286] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - rpc_vers: 82\r\n[14:50:08:286] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - rpc_vers_minor: 80\r\n[14:50:08:286] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - ptype: PTYPE_UNKNOWN (67)\r\n[14:50:08:286] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - pfc_flags (0x5F) = {\r\n[14:50:08:286] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] -  PFC_FIRST_FRAG\r\n[14:50:08:286] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] -  PFC_LAST_FRAG\r\n[14:50:08:286] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] -  PFC_PENDING_CANCEL\r\n[14:50:08:286] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] -  PFC_RESERVED_1\r\n[14:50:08:286] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] -  PFC_CONC_MPX\r\n[14:50:08:286] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] -  }\r\n[14:50:08:286] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - packed_drep[4]: 49 4E 5F 44\r\n[14:50:08:286] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - frag_length: 21569\r\n[14:50:08:286] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - auth_length: 8257\r\n[14:50:08:286] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - call_id: 1668313647\r\n[14:50:08:290] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - rpc_vers: 82\r\n[14:50:08:290] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - rpc_vers_minor: 80\r\n[14:50:08:290] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - ptype: PTYPE_UNKNOWN (67)\r\n[14:50:08:290] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - pfc_flags (0x5F) = {\r\n[14:50:08:290] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] -  PFC_FIRST_FRAG\r\n[14:50:08:290] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] -  PFC_LAST_FRAG\r\n[14:50:08:290] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] -  PFC_PENDING_CANCEL\r\n[14:50:08:290] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] -  PFC_RESERVED_1\r\n[14:50:08:290] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] -  PFC_CONC_MPX\r\n[14:50:08:290] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] -  }\r\n[14:50:08:290] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - packed_drep[4]: 49 4E 5F 44\r\n[14:50:08:290] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - frag_length: 21569\r\n[14:50:08:290] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - auth_length: 8257\r\n[14:50:08:290] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - call_id: 1668313647\r\n[14:50:08:291] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - rpc_vers: 5\r\n[14:50:08:291] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - rpc_vers_minor: 0\r\n[14:50:08:291] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - ptype: PTYPE_RTS (20)\r\n[14:50:08:291] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - pfc_flags (0x03) = {\r\n[14:50:08:291] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] -  PFC_FIRST_FRAG\r\n[14:50:08:291] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] -  PFC_LAST_FRAG\r\n[14:50:08:291] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] -  }\r\n[14:50:08:292] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - packed_drep[4]: 10 00 00 00\r\n[14:50:08:292] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - frag_length: 104\r\n[14:50:08:292] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - auth_length: 0\r\n[14:50:08:292] [7393:1302730496] [INFO][com.freerdp.core.gateway.rpc] - call_id: 0\r\n[14:50:08:318] [7393:1302730496] [ERROR][com.freerdp.core.gateway.rts] - error! Status Code: 503\r\n[14:50:08:318] [7393:1302730496] [ERROR][gateway] - HTTP/1.0 503 RPC Error: 5\r\n[14:50:08:326] [7393:1302730496] [ERROR][com.freerdp.core.gateway.rpc] - rts_connect error!\r\n[14:50:08:326] [7393:1302730496] [ERROR][com.freerdp.core.gateway.tsg] - rpc_connect failed!\r\n[14:50:08:326] [7393:1302730496] [ERROR][com.freerdp.core] - freerdp_set_last_error 0x2000C\r\n[14:50:08:326] [7393:1302730496] [ERROR][com.freerdp.core.connection] - Error: protocol security negotiation or connection failure\r\n```\r\n\r\nThe `getaddrinfo: Name or service not known` is because it tries to resolved `internal.computer-001` from my home computer. But I guess after the failure it tries to go through the RD Gateway.\r\n\r\nWhen I tried to connect through Microsoft's client of Windows 7, I had an error there too, but after I install `KB2830477` patch I got it to work. On Microsoft's client I had to tick `Use my RD Gateway credentials for the remote computer` on the gateway settings, which I guess it's the same as `/g:rdgserver.company.com /gd:companydomain /gu:myusername /gp:mypassword`.\r\n\r\nIf you need any other information let me know."},"comment":{"url":"https://api.github.com/repos/FreeRDP/FreeRDP/issues/comments/107330604","html_url":"https://github.com/FreeRDP/FreeRDP/issues/2282#issuecomment-107330604","issue_url":"https://api.github.com/repos/FreeRDP/FreeRDP/issues/2282","id":107330604,"user":{"login":"lemonmojo","id":186198,"avatar_url":"https://avatars.githubusercontent.com/u/186198?v=3","gravatar_id":"","url":"https://api.github.com/users/lemonmojo","html_url":"https://github.com/lemonmojo","followers_url":"https://api.github.com/users/lemonmojo/followers","following_url":"https://api.github.com/users/lemonmojo/following{/other_user}","gists_url":"https://api.github.com/users/lemonmojo/gists{/gist_id}","starred_url":"https://api.github.com/users/lemonmojo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lemonmojo/subscriptions","organizations_url":"https://api.github.com/users/lemonmojo/orgs","repos_url":"https://api.github.com/users/lemonmojo/repos","events_url":"https://api.github.com/users/lemonmojo/events{/privacy}","received_events_url":"https://api.github.com/users/lemonmojo/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T07:00:20Z","updated_at":"2015-06-01T07:00:20Z","body":"Spoke too soon... After the PR was merged into master the issue returned to its original state. (Cannot connect through Win2k12R2 GWs)"}}