New Install, Windows Agent not connecting

After a lot of troubleshooting I found this solution that worked for registering.

But what is odd now is that in the communication test the agent works but ping fails. Because ping is failing, it tells me the host is down. If I start and stop my network on my server, pings works again but agent again fails. When agent was working, service discovery worked. Just now have to figure out why ping fails.