I uninstalled and re-installed the client, but that didn't help.
I tried taking off all the firewalls on my computer, but that didn't help.
The one thing I did notice is that when I clean using McAfee, it detects outspark as an unwanted program. But no matter how hard i tried I could not tell the McAfee program to allow outspark. I think this may be the reason it keeps disconnecting, but I have no idea how to solve it now.