If you've added the IP address on Setup>Security Controls>Network Access and still have this issue is probably because your profile is also IP Restricted. Go to the profile of the user you're using, under System > Login IP Ranges and add the IP Range to it.
Check My Domain settings, there is an option that prevents you from logging in the standard login URL there. I got this Domain Restriction error that was unrelated to IP. It required us to login using the My Domain URL
i have added my server IP address to the trusted range, but even then i get the error.
What is the mistake.???
If you've added the IP address on Setup>Security Controls>Network Access and still have this issue is probably because your profile is also IP Restricted. Go to the profile of the user you're using, under System > Login IP Ranges and add the IP Range to it.