it has two ports, one for HDMI and one VGA. You could connect both, one for the PS4 and one for the PC, but using the HDMI for both would be better. I don't know if there is a switch out there that you could buy to go back and forth. You could also just plug the HDMI into whichever one you are using and go back and forth. You're not going to do both at the same time so switching the plug would be the easiest thing to do. That said, if you are okay with VGA for the computer and HDMI for the PS4, you could leave them both hooked up and use it that way.