On 2ÔÂ16ÈÕ, ÉÏÎç10ʱ36·Ö, "ankur" <ankur.a.agar...@gmail.com> wrote:
> In my program:
>
> The parent process acts as a server
> The child (forked process) acts as a client
> When I try to bind a socket to a port and IP of my machine I am
> getting Address already in use error.
> I have tried different port numbers too but that was of no avail.
>
> Can someone help ! I used 2004,2006,3000, 5005 ports.
>
Are you sure that you haven't bind to a port twice? Only server need
to do bind, the client just need to connect or sendto(UDP).
Anyway, some code from you may help more.
> Ankur
|