Make sure that its configured for VNC access with a password. Then try to connect to TCP port 5900 with a VNC client on your PC. To answer the other question: VNC is the Mac answer to RDP, actually. Even the commercial 'Apple Remote Desktop' package ultimately uses the VNC protocol.
Dec 28, 2013 OS X 10.9 Mavericks supports the protocol VNC – Virtual Network Computing to connect 2 remote computers which is done via ‘Screen Sharing‘. Here are 2 ways to connect one is using the the Screen Sharing application buried deep in the file system the other is a quick way using the Shared Devices in the sidebar in the finder. VNC enables you to remotely access and control your computers from another computer or mobile device, wherever you are in the world. VNC Viewer for Mac. OS X Yosemite Download Information. I forgot to turn on 'VNC viewers may control screen with password', to enter on my working Mac, is there way to turn-on this feature remotely via SSH (I'm on WindowsXP now)? Stack Exchange Network Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn. Using Apple Remote Desktop as the VNC server will not work. ARD reports a non-existent RFB protocol 3.889, causing the VNC viewer to try to use 3.8, which doesn’t work. I couldn’t get it to work by forcing my VNC viewer to use Protocol 3.3, either 2. The port forwarding destination must be expressed as “localhost:5901” (that.
Using VNC from the Terminal | 25 comments | Create New Account
Click here to return to the 'Using VNC from the Terminal' hint |
The following comments are owned by whoever posted them. This site is not responsible for what they say.
You can do the same from the Finder:
Go->Connect to Server. Or Command-k.
Type in the same 'vnc://..' as above (without the 'open' part). You can save connection shortcuts here also.
Go->Connect to Server. Or Command-k.
Type in the same 'vnc://..' as above (without the 'open' part). You can save connection shortcuts here also.
And of course, the 'open' command can be used to open anything that LaunchServices can - files, applications, URL's, and optionally specify the app to open them with. Very powerful command - even if this is a bit of an odd use for it.
You can do all you describe, or just go to the Finder (Command-Tab: 2), Connect to Server (Command-K: 4), navigate to your favorite server, and connect (Enter: 5). There - 5 keystrokes from Terminal to connecting, and no aliases or shell machinations, and it works from any app - since you're command-tabbing to the Finder first. It would be much nicer if Screen Sharing.app would bring up your favorite VNC locations when launched from the Dock, but sadly a trip to the Finder is necessary. You could always put those favorites on the Dock as well, but then you'd lose out on keyboard access.
You can do all you describe, or just go to the Finder (Command-Tab: 2), Connect to Server (Command-K: 4), navigate to your favorite server, and connect (Enter: 5). There - 5 keystrokes from Terminal to connecting, and no aliases or shell machinations, and it works from any app - since you're command-tabbing to the Finder first. It would be much nicer if Screen Sharing.app would bring up your favorite VNC locations when launched from the Dock, but sadly a trip to the Finder is necessary. You could always put those favorites on the Dock as well, but then you'd lose out on keyboard access.
This doesn't work if your VNC server is on a nonstandard port. I serve multiple VMs from one server, so I have to put each on a different port, and I can't access them this way.
I tried 'open vnc://192.168.1.30:9001' to no avail.
I tried 'open vnc://192.168.1.30:9001' to no avail.
Strange. I use a non-standard port when I'm running vnc over an ssh tunnel and that syntax has always worked fine for me.
I know this won't work in all cases, but for the other computers on my home network, there's the even easier built-in way of doing this.
In the finder, in the sidebar, other computers on the network show up under 'Shared', and it's only two clicks to open a screen sharing session. One on the computer in the sidebar, one on the 'share screen' button that subsequently shows up.
I believe that there was some initial setup for this, but now it's just a matter of a couple clicks.
In the finder, in the sidebar, other computers on the network show up under 'Shared', and it's only two clicks to open a screen sharing session. One on the computer in the sidebar, one on the 'share screen' button that subsequently shows up.
I believe that there was some initial setup for this, but now it's just a matter of a couple clicks.
I just type vnc://blah.tld.com into the safari location bar and it launches screen sharing.
![Yosemite Yosemite](/uploads/1/2/6/5/126530188/909372646.png)
..me too. Even better, you can drag the location from the safari location bar and drop it on your desktop to create a convenient shortcut!
Excellent! TVM for the hint. (Just got a Mac Mini, so was looking for a quicker way to launch VNC/Screen Sharing.)
Yep, and you can save them as bookmarks in Safari. I've done that, then use LaunchBar to open them quickly.
Vnc For Pc
don't forget that you can embed the authentication like this
vnc://username:password@ipaddressordomain
if it's a mac that you are remoting into. Setting them up as a shell alias is one way to do it. Storing them in Safari's bookmarks and the authentication in your keychain is another. Since I mostly work graphically and seldom in terminal, I put all my remote control links in a folder in my bookmarks bar. This has the side effect of also making them available on my iPad, and since I have iTeleport on my iPad the links work from there too.
vnc://username:password@ipaddressordomain
if it's a mac that you are remoting into. Setting them up as a shell alias is one way to do it. Storing them in Safari's bookmarks and the authentication in your keychain is another. Since I mostly work graphically and seldom in terminal, I put all my remote control links in a folder in my bookmarks bar. This has the side effect of also making them available on my iPad, and since I have iTeleport on my iPad the links work from there too.
There is also the built-in Finder capability to create a 'VNC Internet Location' file with an extension of '.vncloc' similar to a 'Web Location' file storing afp, smb or http credentials in a '.webloc' file. This is cool. I just learned it is possible the same way an afp or smb shortcut can be made with credentials embedded: Create the desired connection text in Text Edit or wherever, for example, 'vnc://username:password@ipaddressordomain'. Select the entire text (without quotes) 'vnc://username:password@ipaddressordomain'. This is similar to what I've done for years with afp server connections like this: 'afp://username:password@ipaddressordomain'. Click and drag the text selection Drag it to the desktop or any Finder window and a new file is created The name of the file created will be the same as the selected text followed by the extension, for example, 'vnc://username:[email protected]' (the extension is normally hidden) Change the file name to whatever is desired, for example, 'Mac Mini Screen Sharing.vncloc' (don't change the extension if visible) The contents of the small file are not easily accessible so could be safely copied to other computers or sent as an email attachment to other Mac users, for example a spouse, as an easy shortcut to just double-click to start the screen sharing.
Really, don't put the password in the link. You realize that this will allow anyone with internet access to remotely access the machine in question, if they have it. Doesn't the Screen Sharing application have keychain support? If so, I would recommend using that instead.
And to the other poster, it is extremely easy to view the contents of the file. Just type
And to the other poster, it is extremely easy to view the contents of the file. Just type
cat file
in the terminal. Actually, there's really no need to examine the file anyway, since it has the password in there, anyone who wants to use it just needs to open it (if they are on a Mac). For the more GUI-inclined, try a free utility called Screen Sharing Menulet
http://www.klieme.com/ScreenSharingMenulet.html
It sits in the menu bar and automatically shows any Macs on the local subnet with screen sharing enabled. You can also add other computers by IP address. As a Mac administrator, I find it invaluable for quick remote access for troubleshooting.
http://www.klieme.com/ScreenSharingMenulet.html
It sits in the menu bar and automatically shows any Macs on the local subnet with screen sharing enabled. You can also add other computers by IP address. As a Mac administrator, I find it invaluable for quick remote access for troubleshooting.
Realvnc For Mac
I don't remember where I got it from (maybe here on macosxhints?), but here is my favorite solution: just drag the folder ~/Library/Application Support/Screen Sharing to the dock.
(This folder contains a file with extension .vncloc for each machine that you have accessed for screen sharing)
Click once to show the machines you've used Screen Sharing with; click a second time to select the one you want and there you go.
(This folder contains a file with extension .vncloc for each machine that you have accessed for screen sharing)
Click once to show the machines you've used Screen Sharing with; click a second time to select the one you want and there you go.
If you want to connect to a machine via an IPv6 address, then you can use: using the IPv6 address, obviously.
Seriously? 'on OSX'? For one thing, it's 'OS X,' and for another, this is Mac OS X hints, which should imply that anyway.
This doesn't pertain to the main topic of this hint, but since you mentioned Quicksilver I felt the need to say:
Quicksilver is dead, long live Quick Search Box: http://code.google.com/p/qsb-mac/
Quicksilver is dead, long live Quick Search Box: http://code.google.com/p/qsb-mac/
Really? What am I using then?
No need to be a jerk.
As far as I knew, QSB was the successor to QS. Best screenshot for el capitan. Thanks to your snide comment and some searching around on my part, I now know that QS has moved from its long-hosted blacktree location <http://www.blacktree.com/projects/quicksilver.html> and now exists as github project <http://github.com/tiennou/blacktree-alchemy>.
As far as I knew, QSB was the successor to QS. Best screenshot for el capitan. Thanks to your snide comment and some searching around on my part, I now know that QS has moved from its long-hosted blacktree location <http://www.blacktree.com/projects/quicksilver.html> and now exists as github project <http://github.com/tiennou/blacktree-alchemy>.
A bugbear of mine about this site is the use of absolute statements based on personal experience or personal preference. I'm sorry, I thought your comment was based on the latter.
<blockquote>just drag the folder ~/Library/Application Support/Screen Sharing to the dock.</blockquote>
Except ~/Library/Application Support/Screen Sharing does not exist on my Mac OS X 10.5.8. Any idea why?
Except ~/Library/Application Support/Screen Sharing does not exist on my Mac OS X 10.5.8. Any idea why?
Have you used Screen Sharing to connect to another Mac? The folder is created the first time used.
Thanks Rich,
sure I use it on a daily basis (hence my desire to improve the abysmal poor user interface).
I run on 10.5.8 and the application has not created such a folder. The screen sharing app used to remeber a list of visited serves, but at some point (with some action or update) this disappeared. All I have now is Apple+N to start a small dialog for the server I want to connect to.
I did create such a folder myself and added *.vncloc files with the vnc:// URl in ot but that does not work either.
sure I use it on a daily basis (hence my desire to improve the abysmal poor user interface).
I run on 10.5.8 and the application has not created such a folder. The screen sharing app used to remeber a list of visited serves, but at some point (with some action or update) this disappeared. All I have now is Apple+N to start a small dialog for the server I want to connect to.
I did create such a folder myself and added *.vncloc files with the vnc:// URl in ot but that does not work either.
I'm on 10.5.8 and this does not work.
What works is type vnc://mypc.example.com/ into safari and drag the little icon into a folder in finder. This creates a file named vnc--mypc.example.com.inetloc with some binary content.
If you like you can drag the folder with such *.inetloc shortcuts to the dock in order to show as a fan or grid.
What works is type vnc://mypc.example.com/ into safari and drag the little icon into a folder in finder. This creates a file named vnc--mypc.example.com.inetloc with some binary content.
If you like you can drag the folder with such *.inetloc shortcuts to the dock in order to show as a fan or grid.
Safari can directly handle vnc:// URIs. Also, you can directly use the Finder (under Go > Connect to server..) to save your vnc:// URIs, where you can optionally store credentials to those vnc servers in your keychain.