First disable your internet password, then disable internet firewall, the check your 3ds connect to internet?. make sure you have only one connection (connection 1).
then try to run
if it still failed to connect.
try to back up system nand again in your 4.xx fw, and use this nand to do...