Inspector unable to connect to server

Hi
I have setup Appium(Latest) on my windows 10 machine. I have given the reference to Android App and enabled everything necessary.
On starting the server, the app is getting installed and launched on my device. But while am running the inspector its showing “Failed to connect to server.Please check that its running”.

PS: Since the app which i am running is an security app and taking screenshots is disabled. Is it possible that this could be causing this? Though i have verified with other apps as well. Same result.