Bind error : Address already in use problem

This is a discussion on Bind error : Address already in use problem within the Linux Networking forums, part of the Linux Forums category; In my program: The parent process acts as a server The child (forked process) acts as a client When I ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2007
ankur
 
Posts: n/a
Default Bind error : Address already in use problem

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
  #2 (permalink)  
Old 02-16-2007
Binary
 
Posts: n/a
Default Re: Bind error : Address already in use problem

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

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



All times are GMT +1. The time now is 10:03 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0