Skip to content

Instantly share code, notes, and snippets.

@NapoleonWils0n
Created November 11, 2012 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NapoleonWils0n/4056151 to your computer and use it in GitHub Desktop.
Save NapoleonWils0n/4056151 to your computer and use it in GitHub Desktop.
macosx: vnc leopard
'You cannot share your own computer.' when trying to connect to 'vnc://localhost:[lport]' afterwards. I understand that Apple probably did this to prevent naive users from confusing themselves by connecting to their own systems. However, it's a pain for those who need to connect to localhost for ssh-tunneling. Here's a temporary way to eliminate this restriction:
1 - From the terminal:
defaults write com.apple.ScreenSharing skipLocalAddressCheck -boolean YES
2 - create the ssh tunnel
ssh -L 5900:localhost:5900 ip address
3 - launch screen sharing ap
connect to shared computer
ip address = localhost
Look for file com.apple.ScreenSharing.plist and open it with Property List Editor. Look for ShowBonjourBrowser_Debug entry and change Boolean to Yes. Save, exit and open ScreenSharing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment