Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'How to disable ScreenSharing.app's localhost check' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How to disable ScreenSharing.app's localhost check
Authored by: victory on Oct 31, '07 01:45:42AM
Anyone attempting to use the new 'Screen Sharing.app' with a local SSH-tunnel (e.g. ssh username@remote.host -L [lport]:x.x.x.x:[rport]) has probably seen the error msg:

'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:

From the terminal:

defaults write com.apple.ScreenSharing skipLocalAddressCheck -boolean YES

---

FWIW, I still prefer COTVNC for my remote sessions, but it's still nice to have a VNC client now available as part of the core OS.

[ Reply to This | # ]

How to disable ScreenSharing.app's localhost check
Authored by: timhaigh on Jan 23, '08 03:54:48AM

i have screen sharing working perfectly over an ssh connection.

I initiate the tunnel

ssh -L 5901:localhost:5900 server

then in the screen sharing app I use a host address of

localhost:5901

it works without the need of doing anything else.



[ Reply to This | # ]
A simpler solution
Authored by: Rainy Day on Nov 09, '08 11:40:15PM

Just make sure your lport number is a suitable number other than 5900.



[ Reply to This | # ]