Question: how do you connect 2 computers to one monitor?
Answer: Two cables into one monitor. Most monitors have multiple input ports in the back. You can connect both computers to your monitor at the same time using different cables. ... 
Hardware KVM switch. Another option is to use a hardware device called a KVM switch. ... 
Remote desktop. Remote desktop connections are also an option.