Screen Share by Thunderbolt Cable

Networkscreen-sharingthunderbolt

I have 1 Macbook Air and 1 Macbook Pro. The problem is Macbook Pro has a broken screen so I need to view it by Screen Sharing app in Macbook Air.

I setup Thunderbolt bridge between Macbook Air and Macbook Pro by Thunderbolt cable.

Both have assigned IPs by Thunerbolt connection.

I can successfully connect Macbook Pro by Samba:

smb://169.254.94.117

but screen sharing does not work with the same IP and Screen Sharing app of the Mac OS X.

vnc://169.254.94.117

If I connect these computer to the same router via ethernet cable, I can view the Macbook Pro screen by Screen Sharing app over ethernet connection.

So, why can not I use Screen Share functionality with Thunderbolt IP which seems to be working OK for samba file sharing connection?

How can I fix this issue?

Best Answer

It sounds to me like screen sharing is not enabled on the MacBook Pro. To fix this, we will remotely enable screen sharing using SSH. If remote login is also not enabled, this answer will not work. Open the terminal app, and type:

ssh username@169.254.94.117

Then enter the password for that username. Then type:

sudo defaults write /var/db/launchd.db/com.apple.launchd/overrides.plist com.apple.screensharing -dict Disabled -bool false

This will prompt you for an administrative password. Enter it, then type:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist

This will enable screen sharing on the target computer. Please comment with any questions or comments or if this solution doesn't work.