You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

(Solved) How to fix VNC ARD screen sharing in Lion

How to fix VNC, Apple Remote Desktop (ARD), and screen sharing in OS X 10.7 Lion.

You can skip all the other threads and just read this.


First let's fix the Lion computer.

  1. Open System Preferences > Sharing
  2. Turn OFF Screen Sharing, Remote Login, Remote Management, and Remote Apple Events (just turn everything off)
  3. Now turn ON Screen Sharing, Remote Login, Remote Management, and Remote Apple Events
  4. Now turn everything OFF again. We have just "kickstarted" those services.
  5. Now enable the services you want. If you just want to access your computer through VNC or screen sharing, just turn on Screen Sharing.
  6. If you want Windows computers to access it, go to Screen Sharing > Computer Settings, click the VNC checkbox, and enter a VNC password.


If you administer a bunch of computers with ARD, then turn Remote Managment on. If you don't know what that last sentence means, leave Remote Management and remote Apple Events off.


The computer should now work. If not, reboot it.


If it still doesn't work, then you should try downgrading to ARD 3.4, but I don't think this is necessary.



Let's access the Lion computer from another Mac:

  1. From the other Mac, open /System/Library/Core Services/
  2. There is an application called Screen Sharing. Make an alias of it (click and drag while holding Apple and Option) in the Applications folder. Or drag it to the Dock.
  3. Now open the alias (or click the Dock icon).
  4. Type in the Bonjour name or IP address of your computer.
  5. Enter your OS X username and password.
  6. Tell it to save your password.


Viola, now you can use this to connect to your Lion computer, without having to login twice. You can also connect to Windows computers running VNC with it.


You can also connect by going to the Finder and hitting Apple-K or going to the Finder menubar Go > Connect to Server and finding the correct server. That will then launch Screen Sharing.



Let's access the Lion computer from a Windows PC:

  1. Open your VNC client
  2. Enter the Lion computer IP address
  3. Enter your VNC password
  4. You will now have to re-login with your OS X user password (unless you get a Windows client that supports direct login, but I don't know of one at the moment)


Let's access the Lion computer from an iPhone or iPad:

You could download Screens from the Apple store or...

  1. Download Mocha VNC Lite from the Apple store for free
  2. Configure Mocha but enter not just the VNC password, but also the Mac OS X user and password
  3. Viola, you can now VNC without logging in twice.




What did we actually do?

The key is called kickstarting ARD. You can find info here: http://support.apple.com/kb/HT2370, We did this manually by turning them on and then off.

This is like rebooting those systems. Once rebooted, they should work correctly. I don't believe that downgrading to ARD 3.4 is necessary, but instructions are here from Reubania https://discussions.apple.com/thread/3190260?start=15&tstart=0 (towards the bottom).


The second issue is around double-login. If you run a multiuser machine, this is a great feature. For most people, it's annoying to login twice. By configuring the Screen Sharing and Mocha apps to use OS X authentication, we bypass this annoyance. If you want to have double login for multi-user reasons, simply don't setup/save your password, or save the password for the account you do want to login with.

iMac, Mac OS X (10.7.1), Apple Remote Desktop

Posted on Aug 26, 2011 2:11 PM

Reply
58 replies

Oct 9, 2011 5:43 PM in response to Saint Mac

After reading and trying these different methods, I am still having trouble connecting to my Macbook from my iPhone. I am using the built in ScreenSharing in Lion, and Mocha on the iPhone. I've noticed that when I turn my firewall off, that I am able to connect from my iPhone to my macbook using Mocha. However, when I turn it back on, I am unable to connect. I opened up console.app and was looking at the logs as I was trying to log into into my Macbook, and saw this:

10/9/11 8:38:49.472 PM Firewall: Deny screensharingd connecting from 192.168.1.102:52134 to port 5900 proto=6


So I went into my firewall settings, and sure enough, it's listing the "screensharingd" there in the list, but it says that it is set to allow incoming connections. I'm at a loss here as to what to do. The firewall says that it's ok with screensharingd receiving the connections, however the logs in console.app are saying that it's being denied.


Anybody have any information that may help me out?

Oct 9, 2011 5:59 PM in response to fwmaietta

Well I feel pretty stupid having just fixed my problem about 10 minutes after I posted the above request for help. I'll explain how incase anybody else had this problem.


I went into my firewall settings that shows the list of all approved/unapproved applications, right clicked on remotesharingd, and hit show in finder. Move finder to the background and go back to the firewall settings. Right Click/Two finger tap on remotesharingd, and hit the delete button. Bring Finder forward again, and drag remotesharingd from the finder window to the list of approved/unapproved apps in the firewall settings. Viola, I was then able to connect once again using Mocha VNC. Console.app now shows that my connection from my iPhone are be accepted/permitted.


Just a theory, but it seems like the firewall just needed to be updated with the remotesharingd file. Maybe the file had possibly changed or been corrupted in some way and this was throwing off the firewall causing it to think that it was an intrusion attempt. Anyways,

Oct 28, 2011 3:11 AM in response to massivesquat

similar.


accessing my Mac Pro running 10.7.2 from an iPad with Remoter works fine until I use a Hot Corner to 'Put Display to Sleep'. if I do this, Remoter is absolutely unable to connect to the Mac.


if I don't use 'Put Display to Sleep' and allow the display to sleep according to Energy Saver settings, Remoter can connect to the Mac.


BUT... if I turn on 'Security/Require password', then Remoter is able to wake the screen and begin to connect. however, the connection will always time out. just before the connection times out, an image of the screen with the login window is returned to Remoter.


fun fun fun...

Nov 13, 2011 9:42 AM in response to Saint Mac

I tried kickstarting my iMac and MacBook (both on Lion) and it didn't seem to change anything. I could screen share from work with Back to My Mac, but when I was at home on my own wireless network, I couldn't screen share at all. So irritating. I found this fix, which does seem to work. It involves replacing ARDAgent with an older version, 3.4. This does seem to work, so far.


http://support.apple.com/kb/DL1350



Instructions by tchaga:


1. Download ARD 3.4 (RemoteDesktopClient.dmg), mount it, look inside the package/Contents, copy the Archive.pax.gz to the desktop.


2. Expand the Archive.pax.gz and navigate inside the resulting folder Archive to /System/Library/CoreServices/RemoteManagement


3. Navigate to the same folder at the root of your HD (i.e. HD/System/Library/CoreServices/RemoteManagement)


4. Copy ARDAgent from your HD/System/Library/CoreServices/RemoteManagement to the Desktop and then delete it from the HD/System/Library/CoreServices/RemoteManagement folder (you need admin password).


5. Copy ARDAgent from Archive/System/Library/CoreServices/RemoteManagement to HD/System/Library/CoreServices/RemoteManagement (you need admin password again).


6. Restart

Dec 3, 2011 9:34 AM in response to Saint Mac

If I try to VNC to my mac os x Lion server, usually the logonscreen blocks.

I read all your postings and found out how to kickstart ARD on the server.

Unfortunately kickstarting does only help in exeptional cases.

Usually I have to reboot the lion-server.

After reboot I usually can connect exactly once.

Any further attempts will fail again until I reboot the server.

Is there a way to avoid the loginwindow by submitting the logon info directly via VNC?

Dec 5, 2011 5:53 AM in response to Saint Mac

Thank God for Saint Mac!! I found that the steps from Saint Mac definitely work...the only thing is it didn't work at first for me. I noticed it was asking to save in my keychain so I decided to poke around a little and found that there was duplicate items for my various systems on the network in keychain access. I sorted by kind and all of my computers were listed as network passwords. Removed all the items on every computer for all the different computers. Once that was done, used the steps from Saint Mac and it worked like a charm. Thank again!!

Dec 7, 2011 2:37 PM in response to Saint Mac

I could not find any false items in my keychain.

I kickstarted ARD and then killed all loginwindow processes (including the loginwindow console).

This had the same effect als all users would have logged off.

This helps and is a lot better than rebooting the server.

But there is still the disadvantage, that the users running processes are lost.

Any ideas for workarounds which less impact would be appreciated very much.

Thank you again.

Dec 12, 2011 7:30 PM in response to Saint Mac

For those of you who are getting the 'gray screen' when connecting via a VNC client, I have found if I use Mocha VNC from my iPad and configure the settings with my Mac ID and password, it works. Apparently the gray screen we are seeing is the login screen minus the objects to login. I am going to try to connect with Real VNC tomorrow.

Dec 19, 2011 12:54 PM in response to Saint Mac

I'm hoping you can tell me if what I've been trying to do is possible. I was under the impression it was, but several Apple technicians from AppleCare told me it is not.


I have an iMac running Lion at home, and several blocks away at a relatives house, they have a MacBook Pro running Lion, and an iMac running Leopard. I wrote down the IP addresses from all computers by going to whatismyipaddress.com, and all computers have a static IP. All I'm trying to do is Screen Sharing, which is enabled in all 3 computers, Allow access for All Users (tried "only these users", but same issue), "Computer Settings" I've tried checking VNC viewers...password, Anyone, none of them, etc.


Screen Sharing is the only service checked. I tried your suggestion on all 3 computers as well, but can not connect when I go to the GO menu in the finder and select Connect to Server and enter: vnc:// and the IP address. I keep getting "Connection failed to "the IP address I entered" I did try Screen Sharing using iChat, and that worked perfectly. The AppleCare specialist also told me to open the Finder window and see if "SHARED" appears in the sidebar...it is not there in any of the computers. These computers are not in the same household, as I stated. I was told that the computers are too far away for this to be done, but I said I am not trying to connect remotely via Wi-FI, but rather, remotely via the internet using the IP Address.


Is what I'm trying to do even possible? I'm not interested in 3rd party apps, nor are any of the computers a dedicated server. My reading on this topic gave me the impression that as long as you left your computer turned on and had Screen Sharing enabled, you enter the IP address, and you should be able to connect to it.


Any help, guiding, and comments on this issue will be appreciated.



In God's Harmony

Dec 19, 2011 9:49 PM in response to rawsaxy

From what you describe I can see a couple of issues. One is that the machines you have on the far network are behind a router. This means there are 2 IP's that you have to sort out first the IP on the machine is just the IP ot it on the local network and not the IP of it on the internet. The way you can check if this is the issue is you can set up one of the machines in a DMZ zone and then hit it from your house to the IP of the router. (this is not a great long term solution as the DMZ puts that machine directly on the internet. If you can connect then you know it can be done when needed but it is a limited solution because you have two machines there it sounds like you want to be able to get to. But if it works you can hit which ever computer you need to as they can put whichever machine you need to talk to in the dmz zones via the router as needed.


Not sure what you are exactly trying to do. Don't know if you are trying to control them or just see the screen. If you are just trying to view a screen you could do it easily via something like skype which can share the screen. Also if you are up to version the latest lion that has caused the problem in this list then good luck as I have similar problems as the other people and since the upgrade can't get either the remote desktop or the share screen to work.

Dec 20, 2011 9:43 AM in response to TheCraw

Thanks for the suggestion, but I rather not set up a DMZ, even if it is temporary. To simplify what I'm trying to do, I have one iMac with Lion at home, and 2 computers at another house. These 2 computers are a new MacBook Pro (with same version Lion as on my iMac), and an older iMac running Leopard. If I use iChat, and select Screen Sharing, I can view and control the computers, but for some reason, File Transfers are not working. I just added iChat.app into the Mac's Firewall preferences, I will see if files can be transferred, but that will be later.


I was under the impression that I could simply go to the Finder and choose Connect to Server, enter vnc:// and the IP address of the computer at the other location, and connect to view screen at least. The IP address is not the local, it is the one for internet presence. Basically what the AppleCare specialist told me was that choosing

Connect to Server, is only for computers that are physically in the same network at the same physical location (house), and not to connect remotely via internet.

(Solved) How to fix VNC ARD screen sharing in Lion

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.