When I run the code given in MS CRM SDK sample code for basic CRUD operations, it gives me the error

The remote name could not be resolved which is the name of MS CRM on-premise Server, while if I use the IP instead of the server it works in browser.
Any idea how to fix this ?
Thanks
*This post is locked for comments
I have the same question (0)