Activate a 3G / 4G smartphone and activate the hotspot.
Then set the PS4 to access the smartphone hotspot connection.
Go into with the psn login and password.
Return the PS4 to its standard Wifi and try to see if it works.
If that doesn't work open the router ports.
If you need more assistance please contact the customer support.