[SalesForce] ANT tool error failed to send request to login.salesforce.com

I am trying to deploy one object using ANT tool. I am not able deploy because of error(some times Failed to deploy to login.salesforce.com and some times invalid username, invalid password, security token or user locked out). I am deploying between developer editions. kindly give me solution and what process takes place in command prompt. thank you

Best Answer

Sometimes these error comes because the your IP may not be whitelisted . So,to resolv0 this for the both the Org white list your IP from Setup->security Controls --> network access
here click new and put your IP Address of your system and save then try to do your process again with ANT

Hope this was useful to you get over your issue.