UE4 not recognizing Perforce workspace

I installed the client, and it works with the cloud server, I tested it with my friend who also has the client. But when I type in the address and
everything on the Source Control area of UE4, it just doesn’t connect. It says to check my connection. I made sure to put the project within the workspace folder too.