[netperf-talk] Netserver could not establish a listen endpoint

Rick Jones rick.jones2 at hp.com
Wed May 26 09:59:54 PDT 2010


Anil Kulkarni wrote:
> Hi,
>  
> I have downloaded and installed netperf-2.4.5 version on my linux pc and 
> also by cross compilation i have copied the executables to my target 
> board also.
>  
> My intention is to execute netserver on PC and netperf on target board. 
> But when i issue, netserver command on my pc i get below error,
> /Starting netserver at port 12865
> set_up_server could not establish a listen endpoint for  port 12865 with 
> family AF_UNSPEC

99 times out of ten, it means that there is already something running, bound to 
port 12865.  Perhaps an older version of netserver or something else - before 
starting netserver try "netstat -an | grep 12865" and see if that shows anything.

> /I have already added this port number under /etc/services as
> netserver       12865/tcp
> netserver       12865/udp

There is no call for the second line - netperf will never use UDP for the 
control connection.  Also, editing /etc/services is merely to provide a 
convenient service name to port number mapping, nothing more.

> Also, when i execute netperf on my target board as, ./netperf -H 
> 192.168.2.10. I get below message
> /TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to netserver 
> (165.114.40.9
> 6) port 0 AF_INET
> Recv   Send    Send
> Socket Socket  Message  Elapsed
> Size   Size    Size     Time     Throughput
> bytes  bytes   bytes    secs.    10^6bits/sec/
> / 87380  16384  16384    10.01      76.56/
> Could you please help me how to resolve this issue and how to get proper 
> results.

What leads you to believe that is not a proper result?  Particularly if there is 
already a netserver running on the PC.

happy benchmarking,

rick jones


More information about the netperf-talk mailing list