Hi Mike, Further to my previous mail, I'm not sure that the current VNC Viewer for Mac OS X releases support server names specified directly on the command-line, although specifying a ".vnc" file on the command-line instead should work.
VNC Servers are referred to in one of two ways: <name|ip>:<port|display> <name|ip>::<port> Where "name" is a DNS name, "ip" an IP address (IPv6 addresses must be enclosed in square brackets for clarity), "port" a TCP port number and "display" a VNC display number in the range 0-99. The single-colon format assumes display values of 100 or above to be port numbers. "localhost" should be equivalent on an IPv4-only host. If a system also supports IPv6 then specifying 127.0.0.1 indicates that IPv4-based loopback should be used, whereas "localhost" will normally try using IPv6 and fall-back to IPv4 if that fails. Regards, -- Wez @ RealVNC Ltd > -----Original Message----- > From: vnc-list-ad...@realvnc.com [mailto:vnc-list-ad...@realvnc.com] On > Behalf Of Mike Miller > Sent: 09 March 2009 15:24 > To: 'VNC List' > Subject: RE: vncviewer on thumb drive for Mac OS X > > On Mon, 9 Mar 2009, James Weatherall wrote: > > > "localhost:25901:1" isn't a valid VNC Server description - you need > to > > drop the trailing ":1" in this case. > > Thanks! I found that on someone's web page and wondered about it, but > it > worked, so I kept the :1. I assume this applies to all vncviewers on > all > OSs, am I right? > > Related question: Is there a reason to prefer localhost:25901 to > 127.0.0.1:25901 ? Do they *always* do exactly the same thing? > > Best, > Mike > > > >> -----Original Message----- > >> From: vnc-list-ad...@realvnc.com [mailto:vnc-list-ad...@realvnc.com] > On > >> Behalf Of Mike Miller > >> Sent: 06 March 2009 00:03 > >> To: VNC List > >> Subject: vncviewer on thumb drive for Mac OS X > >> > >> I put the VNC viewer for Mac OS X on a thumb drive and managed to > get > >> it to work with SSH and the script I was working on the other day. > It > >> doesn't seem to recognize the "localhost:25901:1" part of the > command > >> though, so I had to increase "sleep 10" to "sleep 100" to have > enough > >> time to deal with entering "localhost:25901:1" in the dialog box. I > >> also had to use a different path for VNC viewer and a different path > >> for bash than the paths I used for GNU/Linux. > >> > >> See below. > >> > >> If there is a way to make that work better, let us know, if you > don't > >> mind. > >> > >> Mike > >> > >> > >> $ cat /media/disk/vnc/mac_os_x/vnc_myserver.bash > >> #!/bin/bash > >> > >> exec_dir="$(dirname "$0")" > >> file_dir="${exec_dir}/files" > >> > >> ssh -f -L 25901:127.0.0.1:5901 m...@myserver.edu sleep 100 > >> "$file_dir"/vncviewer.app/Contents/MacOS/VNCViewer -Shared > localhost:25901:1 & > >> > >> > >> -------------------------------------------------------------------- > --- > >> --- > >> > >> > >> $ tree /media/disk/vnc/mac_os_x/ > >> /media/disk/vnc/mac_os_x/ > >> |-- files > >> | |-- vnc-E4_4_3-universal_macosx_viewer.dmg > >> | `-- vncviewer.app > >> | `-- Contents > >> | |-- Info.plist > >> | |-- MacOS > >> | | `-- VNCViewer > >> | |-- PkgInfo > >> | `-- Resources > >> | |-- DownloadIcon.png > >> | |-- DragIcon.png > >> | |-- English.lproj > >> | | |-- Connection.nib > >> | | | |-- classes.nib > >> | | | |-- info.nib > >> | | | `-- keyedobjects.nib > >> | | |-- InfoPlist.strings > >> | | `-- MainMenu.nib > >> | | |-- classes.nib > >> | | |-- info.nib > >> | | `-- keyedobjects.nib > >> | |-- Options.nib > >> | | |-- classes.nib > >> | | |-- info.nib > >> | | `-- keyedobjects.nib > >> | |-- VNCViewer.icns > >> | |-- VNCViewer_new.icns > >> | |-- about.png > >> | |-- activity00_32x32.png > >> | |-- activity01_32x32.png > >> | |-- activity10_32x32.png > >> | |-- activity11_32x32.png > >> | |-- close_connection32x32.png > >> | |-- connectiongraphic.png > >> | |-- connectioninfo32x32.png > >> | |-- ctrl_alt_del32x32.png > >> | |-- dockIcon.png > >> | |-- dotcursor.png > >> | |-- encryption_off32x32.png > >> | |-- encryption_on32x32.png > >> | |-- fetch_files32x32.png > >> | |-- fullscreen32x32.png > >> | |-- fullscreen_revert32x32.png > >> | |-- logo58x55.bmp > >> | |-- new_connection32x32.png > >> | |-- newviewer.png > >> | |-- options32x32.png > >> | |-- save_connection32x32.png > >> | |-- selected.png > >> | |-- share_files32x32.png > >> | |-- unselected.png > >> | |-- up.bmp > >> | |-- vncviewer128x128.png > >> | `-- vncviewer72x72.png > >> `-- vnc_myserver.bash > >> > >> 9 directories, 46 files > _______________________________________________ > VNC-List mailing list > VNC-List@realvnc.com > To remove yourself from the list visit: > http://www.realvnc.com/mailman/listinfo/vnc-list _______________________________________________ VNC-List mailing list VNC-List@realvnc.com To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list