If you are like me, and your CD/DVD has stopped working on an old mac, you can use CD/DVD sharing to access the drive on another computer. Unfortunately, if your old computer originally had a CD/DVD drive then this feature is disabled by default. You can execute the following commands in terminal to enable Remote Disk.
$ defaults write com.apple.NetworkBrowser EnableODiskBrowsing -bool true
$ defaults write com.apple.NetworkBrowser ODSSupported -bool true
Restart your computer and then you’ll see the Remote CD/DVD under devices in the Finder’s sidebar.