Grandsteam Gateway will not stay registered

I am using a grandsteam gateway. when I reboot it, it registers and works for like 2 minutes and then unregisters and can’t connect. When I see this, NAT settings can be adjusted to keep it registered, but I have had no luck. All my phones works perfect. PBX is hosted. Any thoughts?