Does it work perfectly fine on everything else and only does it when connecting via ftp?
If so, it seems like a firewall/router setting.
Have you tried disabling the firewall and trying again? - Obviously, only disable it for a few moments, just to test as I wouldn't recommend anyone work with firewall disabled.
Other than that, I guess D Link have a support forum where I am sure they have come across this before
