Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm wondering if there is an easier way. Currently, I launch Screen Sharing app, and a window appears asking for a host to connect to. I'd like it to already have the host field populated with my last connected host. Is there any way to enable such functionality? Thanks in advance.

share|improve this question

4 Answers 4

up vote 5 down vote accepted

Don't know of a way to specifically do that, but you can set up browser bookmarks and/or desktop icons that will connect to specific hosts, if that's any help.

For the former, create a bookmark that points to vnc://hostname.blah.com rather than the more usual http://hostname.blah.com.

For the latter, create a text file with the .command suffix (e.g. 'myvnc.command') that contains the single line:

open vnc://hostname.blah.com

which will start the screen sharing session when you double-click it in Finder. You can also drag it to your dock if you wish.

share|improve this answer

I used to put the ScreenSharing app icon in my dock, but I found a better way.

Finder's general "Connect to Server" capability is wonderful. Click Finder, or Command-Tab to it, then in the "Go" Menu, choose "Connect to Server". Alternatively, if you're a keyboard freak like me, make Finder active then press Command + k.

Like Calum's suggestion above, the vnc://hostname.local. URI is correct. However, this method (using the Connect to Server window) remembers the last server you connected too :).

As an aside, the Connect to Server dialog is infinitely flexible. You can put paths to Samba Shares (smb://), AFP Servers (afp://), VNC/Screen Sharing entries (vnc://), and almost anything with a protocol (except http/https, oddly enough) in there and it'll use it. FTP (ftp://) works, http:// works for Webdav sites, NOT websites, and more.

share|improve this answer

Another way could be the following:

Once you are connected with screen sharing, take a closer look at title bar of Screen Sharing´s main window. Next to the name of the host you´re connected to, sits a little proxy icon that looks like a document. Click exactly on this tiny icon and drag it to your dock. This will create a file called hostname.vncloc in your dock which you can now click to directly connect to your host.

For additional comfort (if you haven´t done so already), while on the VNC connection prompt, make sure to check the checkbox prompting you to add the username and password you use for VNC to your keychain.

share|improve this answer

Every time you open a screensharing location, Lion puts an .vncloc file in ~user/Library/Application Support/Screen sharing. Copy that to your programs folder and make a shortcut in dock. Done!

Note: Lion has Library folder hidden in default. I use the free and easy dashboard widget to hide and show hidden files (thanks Matt): http://web.me.com/hansen.m/Site/Widgets.html http://www.apple.com/downloads/dashboard/developer/hiddenfiles.html

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.