Hey Nishad,
That error is only possible if you're trying to bind a non-existing host name or trying to connect to a non-existing host name.
So most likely there's more information with the error as it should tell you what the hostname (servname) it's trying. If you're trying to connect through localhost it could be that localhost is not defined within your system.
To accurately tell you where this message is coming from I'll need the rest of the error message though. Could you copy what's around it or send a screenshot of it?
With kind regards,
Balder Viëtor
Head of Testing