bind() failed: Address already in use
<p>I am implementing DNS server and DNS resolver and i am using socket programming in this. But i get error in function <code>bind()</code> as <code>bind()</code> failed and <code>sendto()</code> permission denied.</p>

<p>I had tried using different port numbers, also i am working as a root, but still it giving me same error.Please help me to solve those issues. Your answers are welcome. Thanks. </p>

<p><a href="https://github.com/srijan/DNS-Server---Resolver/tree/c73a124a15f53eb985a4b4afc0dffedd432c8454" rel="nofollow noreferrer">https://github.com/srijan/DNS-Server---Resolver/tree/c73a124a15f53eb985a4b4afc0dffedd432c8454</a></p>