Hi druv_91,
Thanks for your reply.
Yes, I did what u have mentioned. But problem i am facing is, when I launch appium server manually its working fine but when I try to launch through code its giving above error. Also till last week it was working fine, suddenly its started giving error. Appium version is 1.4.16.1. Last week also same version I used.