question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BindPort ignored?

See original GitHub issue

I might be understanding this wrong, but we’ve got two instances of FastAgi running on the same server. Basically I set the ports, and all should be fine:

agi = new AsteriskFastAGI();
//...
agi.BindPort = 1234;// My custom port
agi.Start();

However, I still receive this error when starting the second instance (with a different port specified):

System.Net.Sockets.SocketException (0x80004005): Only one usage of each socket address (protocol/network address/port) is normally permitted
   at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Bind(EndPoint localEP)
   at System.Net.Sockets.TcpListener.Start(Int32 backlog)
   at AsterNET.IO.ServerSocket..ctor(Int32 port, IPAddress bindAddress, Encoding encoding) in e:\Projects\Github\AsterNET\Asterisk.2013\Asterisk.NET\IO\ServerSocket.cs:line 19
   at AsterNET.FastAGI.AsteriskFastAGI.Start()

What am I missing?!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
zendassiecommented, Sep 25, 2018

I’ve build the code as I called it originally into a test app, and for the life of me cannot replicate. I have no idea what went wrong initially. Thanks for the help!

1reaction
Deantwocommented, Sep 21, 2018

It would be nice if you could try to reproduce it. If you can’t then you can just close this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IAX trunk "No authority found" and "ignoring bind port on ...
Calling only works one way, I am getting an ignoring bindport on reload and a REJECT, no authority found, CAUSE CODE 50 on...
Read more >
Ignoring bindport/bindaddr on reload
Hi to everybody, My IAX is not working, When I type reload IAX it returns me: AsteriskSlave*CLI> iax2 reload
Read more >
IAX UNREACHABLE : Ignoring Bindport/bindaddr On Reload
Hi to everybody,. My IAX is not working, When I type reload IAX it returns me: AsteriskSlave*CLI> iax2 reload
Read more >
SSH Reverse Tunnel: Bind Address is ignored
I want it to bind to 10.1.1.200:443, but instead it binds to 0.0.0.0:443. Why won't it bind to the correct ip?
Read more >
"bad signature" over and over in logs, new torrents won't ...
adding the following made torrents start downloading for me. OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60 --pull-filter ignore ping.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found