You only need to follow the secondmethod of connecting to the your router/wifi.
The subnet mask, default gateway and ip address can be found when you AUTOMATICALLY connect to the wifi via your ps4. Just connect and then look under the network settings and you'll ifnd the information there.
So write these down and sign out of the wifi and connect again but this time MANUALLY with the numbers you have jusy written down.
Connect and it should work.