Networking Forums

Networking Forums > Computer Networking > Linux Networking > Can't run multiple instances of the same echo-server

Reply
Thread Tools Display Modes

Can't run multiple instances of the same echo-server

 
 
yazwas
Guest
Posts: n/a

 
      07-17-2007, 02:28 PM
Hello All,

I've written a TCP/IP echo server, and I'm trying to run multiple
instances of it together, but using different port numbers, but I keep
getting
"bind: address already in use"
is this a normal behavior or something is wrong,

Thanks in advance,

 
Reply With Quote
 
 
 
 
Tim Southerwood
Guest
Posts: n/a

 
      07-17-2007, 03:18 PM
yazwas wrote:

> Hello All,
>
> I've written a TCP/IP echo server, and I'm trying to run multiple
> instances of it together, but using different port numbers, but I keep

^^^^^^^^^^^^^^^ [1]


> getting
> "bind: address already in use"

^^^^^^^^^^^^^^^^^^^^^^^^^^ [2]

> is this a normal behavior or something is wrong,


Hi

[1] and [2] are almost certainly at odds. Unless you have something else
listening on certain ports, causing [2].

Try a "netstat -apl" first to make sure all the required ports are free,
then check your code.

Cheers

Tim
 
Reply With Quote
 
Robert Harris
Guest
Posts: n/a

 
      07-17-2007, 04:14 PM
yazwas wrote:
> Hello All,
>
> I've written a TCP/IP echo server, and I'm trying to run multiple
> instances of it together, but using different port numbers, but I keep
> getting
> "bind: address already in use"
> is this a normal behavior or something is wrong,
>
> Thanks in advance,
>

Some other process is already listening on your port.

Robert
 
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
Multiple instances of same SSID vj_v1 Wireless Internet 3 01-25-2008 01:34 AM
Server 2003 obtaining multiple multiple IP addresses via DHCP pbrommer@gmail.com Windows Networking 1 03-29-2007 02:24 AM
Zebra: Multiple instances and routing between instances? amigan Linux Networking 1 02-16-2007 10:08 AM
telnet echo on/off causes strange crlf echo dcre Linux Networking 0 04-10-2006 10:27 PM
Echo server for Linux Gregg C Levine Linux Networking 2 02-03-2004 11:41 AM



1 2 3 4 5 6 7 8 9 10 11