Public bug reported:

I guess this is a fairly common situation: on my network every machine
has a hostname but they are not in the DNS (or /etc/hosts). When I try
to connect to a VNC server using service-discovery-applet, VNC complains
"Couldn't convert [name of computer] to host address".

service-discovery-applet should invoke VNC using the IP address, like
this:

--- xvncviewer.py.orig  2006-09-16 03:27:08.000000000 +0000
+++ xvncviewer.py       2006-09-16 03:26:49.000000000 +0000
@@ -23,7 +23,7 @@
 
     def connect(self, use_host_names, name, stype, hostname, address, port, txt
s):
         print "connecting using xvncviewer"
-       cmdline = ["/usr/share/service-discovery-applet/tools//exec_wrapper", "x
vncviewer", "-xrm", "*passwordDialog:true", hostname ]
+       cmdline = ["/usr/share/service-discovery-applet/tools//exec_wrapper", "x
vncviewer", "-xrm", "*passwordDialog:true", address ]
        print cmdline
        pid = subprocess.Popen(cmdline, close_fds=True).pid

** Affects: service-discovery-applet (Ubuntu)
     Importance: Untriaged
         Status: Unconfirmed

** Description changed:

  I guess this is a fairly common situation: on my network every machine
  has a hostname but they are not in the DNS (or /etc/hosts). When I try
- to connect to a VNC viewer using service-discovery-applet, VNC complains
+ to connect to a VNC server using service-discovery-applet, VNC complains
  "Couldn't convert [name of computer] to host address".
  
  service-discovery-applet should invoke VNC using the IP address, like
  this:
  
  --- xvncviewer.py.orig  2006-09-16 03:27:08.000000000 +0000
  +++ xvncviewer.py       2006-09-16 03:26:49.000000000 +0000
  @@ -23,7 +23,7 @@
   
       def connect(self, use_host_names, name, stype, hostname, address, port, 
txt
  s):
           print "connecting using xvncviewer"
  -       cmdline = ["/usr/share/service-discovery-applet/tools//exec_wrapper", 
"x
  vncviewer", "-xrm", "*passwordDialog:true", hostname ]
  +       cmdline = ["/usr/share/service-discovery-applet/tools//exec_wrapper", 
"x
  vncviewer", "-xrm", "*passwordDialog:true", address ]
          print cmdline
          pid = subprocess.Popen(cmdline, close_fds=True).pid

-- 
VNC remote access tries to connect using hostname which fails if it's 
unresolvable
https://launchpad.net/bugs/60664

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to