I had the same problem with my S6 edge. I have Comcast at home. I called comcast and they said it is a problem with the phone. I called Samsung and they said it must be your wifi!!!!. I tried my phone on different wifi and it worked perfectly. So, I changed the security mode to WPAWPA2-PSK...