If you’re not currently in Nigeria, the easiest way to get an IP address from the country is to use a VPN. The problem is that most VPNs don’t have Nigerian servers, as African countries are consistently underrepresented by major providers.
There are a few services with servers in Nigeria, though: Surfshark, CyberGhost, And PrivateVPN. All of these providers include a money-back guarantee, meaning you can try them out and get a refund if you’re unsatisifed in any way.