Networking Forums

Networking Forums > Computer Networking > Linux Networking > Bind error : Address already in use problem

Reply
Thread Tools Display Modes

Bind error : Address already in use problem

 
 
ankur
Guest
Posts: n/a

 
      02-16-2007, 01:36 AM
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.

Ankur

 
Reply With Quote
 
 
 
 
Binary
Guest
Posts: n/a

 
      02-16-2007, 01:52 AM
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



 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
address bind... Ming-Chuan Huang Linux Networking 1 03-22-2006 01:53 PM
Fail to bind TAP driver. Error 1 lorne Windows Networking 0 06-19-2004 02:21 AM
NIS internal error after bind Jason Corso Linux Networking 0 04-19-2004 04:16 PM
Preventing bind on certain ip address Ernie Sams Linux Networking 1 01-20-2004 02:43 PM
Cannot bind name to socket! : Address already in use Ravi Linux Networking 1 12-01-2003 04:52 PM



1 2 3 4 5 6 7 8 9 10 11