{"action":"created","issue":{"url":"https://api.github.com/repos/GNS3/gns3-server/issues/722","repository_url":"https://api.github.com/repos/GNS3/gns3-server","labels_url":"https://api.github.com/repos/GNS3/gns3-server/issues/722/labels{/name}","comments_url":"https://api.github.com/repos/GNS3/gns3-server/issues/722/comments","events_url":"https://api.github.com/repos/GNS3/gns3-server/issues/722/events","html_url":"https://github.com/GNS3/gns3-server/issues/722","id":183262889,"number":722,"title":"VPCS doesn't work with a named remote server","user":{"login":"ehlers","id":896406,"avatar_url":"https://avatars.githubusercontent.com/u/896406?v=3","gravatar_id":"","url":"https://api.github.com/users/ehlers","html_url":"https://github.com/ehlers","followers_url":"https://api.github.com/users/ehlers/followers","following_url":"https://api.github.com/users/ehlers/following{/other_user}","gists_url":"https://api.github.com/users/ehlers/gists{/gist_id}","starred_url":"https://api.github.com/users/ehlers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehlers/subscriptions","organizations_url":"https://api.github.com/users/ehlers/orgs","repos_url":"https://api.github.com/users/ehlers/repos","events_url":"https://api.github.com/users/ehlers/events{/privacy}","received_events_url":"https://api.github.com/users/ehlers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GNS3/gns3-server/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/GNS3/gns3-server/milestones/31","html_url":"https://github.com/GNS3/gns3-server/milestones/1.5.3","labels_url":"https://api.github.com/repos/GNS3/gns3-server/milestones/31/labels","id":1948314,"number":31,"title":"1.5.3","description":"","creator":{"login":"grossmj","id":4752614,"avatar_url":"https://avatars.githubusercontent.com/u/4752614?v=3","gravatar_id":"","url":"https://api.github.com/users/grossmj","html_url":"https://github.com/grossmj","followers_url":"https://api.github.com/users/grossmj/followers","following_url":"https://api.github.com/users/grossmj/following{/other_user}","gists_url":"https://api.github.com/users/grossmj/gists{/gist_id}","starred_url":"https://api.github.com/users/grossmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grossmj/subscriptions","organizations_url":"https://api.github.com/users/grossmj/orgs","repos_url":"https://api.github.com/users/grossmj/repos","events_url":"https://api.github.com/users/grossmj/events{/privacy}","received_events_url":"https://api.github.com/users/grossmj/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":16,"state":"open","created_at":"2016-08-17T21:36:18Z","updated_at":"2016-10-19T14:56:05Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-10-16T11:48:01Z","updated_at":"2016-10-19T15:01:22Z","closed_at":"2016-10-19T14:56:05Z","body":"GNS3 version 1.5.3dev1\r\n\r\nWhen a remote server is addressed by a host name, not an IP address, the connection from VPCS to other network elements doesn't work.\r\n\r\nReason is, that the VPCS option `-t <remote_host>` allows only IP addresses, not host names.\r\n\r\nA quick and dirty fix:\r\n```\r\ndiff --git a/gns3server/modules/vpcs/vpcs_vm.py b/gns3server/modules/vpcs/vpcs_vm.py\r\nindex e1b11be..fe1348b 100644\r\n--- a/gns3server/modules/vpcs/vpcs_vm.py\r\n+++ b/gns3server/modules/vpcs/vpcs_vm.py\r\n@@ -24,6 +24,7 @@ import os\r\n import sys\r\n import subprocess\r\n import signal\r\n+import socket\r\n import re\r\n import asyncio\r\n import shutil\r\n@@ -432,7 +433,7 @@ class VPCSVM(BaseVM):\r\n                 # UDP tunnel\r\n                 command.extend([\"-s\", str(nio.lport)])  # source UDP port\r\n                 command.extend([\"-c\", str(nio.rport)])  # destination UDP port\r\n-                command.extend([\"-t\", nio.rhost])  # destination host\r\n+                command.extend([\"-t\", socket.gethostbyname(nio.rhost)])  # destination host\r\n\r\n             elif isinstance(nio, NIOTAP):\r\n                 # TAP interface\r\n```\r\n\r\nIt's dirty, because it doesn't handle exceptions in socket.gethostbyname on unknown hosts."},"comment":{"url":"https://api.github.com/repos/GNS3/gns3-server/issues/comments/254839920","html_url":"https://github.com/GNS3/gns3-server/issues/722#issuecomment-254839920","issue_url":"https://api.github.com/repos/GNS3/gns3-server/issues/722","id":254839920,"user":{"login":"noplay","id":345437,"avatar_url":"https://avatars.githubusercontent.com/u/345437?v=3","gravatar_id":"","url":"https://api.github.com/users/noplay","html_url":"https://github.com/noplay","followers_url":"https://api.github.com/users/noplay/followers","following_url":"https://api.github.com/users/noplay/following{/other_user}","gists_url":"https://api.github.com/users/noplay/gists{/gist_id}","starred_url":"https://api.github.com/users/noplay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noplay/subscriptions","organizations_url":"https://api.github.com/users/noplay/orgs","repos_url":"https://api.github.com/users/noplay/repos","events_url":"https://api.github.com/users/noplay/events{/privacy}","received_events_url":"https://api.github.com/users/noplay/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T15:01:21Z","updated_at":"2016-10-19T15:01:21Z","body":"At the end I choose your first patch, avoiding waiting update from all distributions but I will notify the author of VPCS."}}
{"actor":{"display_login":"noplay"}}