failed to bind socket.. ERROR

790 views
Skip to first unread message

Shilpi Mittal

unread,
Sep 4, 2021, 1:29:08 AM9/4/21
to ns-3-users
Hello forks,

I am trying to create client-server model with 2 nodes and further connecting them to n nodes.

Please find the code as attachment and help me to provide solution for the following error.

Error:

Waf: Leaving directory `/home/ubuntu/ns-3-dev/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (9.016s)
msg="Failed to bind socket", +1.000000000s 11 file=../src/applications/model/udp-server.cc, line=132
terminate called without an active exception
Command ['/home/ubuntu/ns-3-dev/build/scratch/paper2'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --gdb").
paper2.cc

Hannah Schultz

unread,
Feb 2, 2022, 7:47:49 PM2/2/22
to ns-3-users
I am also having this issue, were you able to find a solution?

Soulimane Mammar

unread,
Feb 3, 2022, 9:21:39 AM2/3/22
to ns-3-users
Hi,
in your script in:
UdpClientHelper client (serverAddress1, port);
serverAddress1 is an invalid address. Try using InsetSocketAddress(....)
Regards
Reply all
Reply to author
Forward
0 new messages