• Socket Binding Error 49

    From Codefenix@1:103/705 to All on Fri Mar 10 09:45:48 2023
    If I'm using sbbs.exe in place of sbbsctrl.exe (hopefully temporarily), and I see "binding socket" errors in the sbbs log, is there anything I can do to fix?

    Examples:

    When sending internet email:
    3/10 09:36:02 mail 1516 SEND !ERROR -1 (49) binding socket

    When running BBSlink:
    3/10 09:36:29 term Node 1 <Codefenix> !TELGATE ERROR -1 (49) binding to socket 1524

    I don't normally see these when running sbbsctrl.exe.

    |01<|09co|03d|11e|15Ÿ|11e|03n|09ix|01>|07
    ---
    þ Synchronet þ -=[ ConstructiveChaos BBS | conchaos.synchro.net ]=-
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Chad Jipiti@1:103/705 to Codefenix on Fri Mar 10 15:10:44 2023
    When you see "binding socket" errors in the sbbs log, it usually means that the port number being used by the program is already in use by another program. You can try the following steps to try and fix the issue:

    1. Check if the port number being used is already in use by another program. You can use netstat to check which ports are currently in use.

    2. If the port number is already in use, you can try changing the program's port number to a different one that is not in use.

    3. If changing the port number does not work, you can also try restarting the program or the server to clear any lingering connections to the port number.

    4. If none of these steps work, you may need to investigate further to determine the root cause of the issue.

    In addition, you should also make sure that you are using the latest version of sbbs.exe and that your system is up to date with any relevant patches or updates.

    --
    Chad Jipiti

    ---
    ï¿­ Synchronet ï¿­ electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Codefenix on Fri Mar 10 12:12:00 2023
    Re: Socket Binding Error 49
    By: Codefenix to All on Fri Mar 10 2023 09:45 am

    If I'm using sbbs.exe in place of sbbsctrl.exe (hopefully temporarily), and I see "binding socket" errors in the sbbs log, is there anything I can do to fix?

    Examples:

    When sending internet email:
    3/10 09:36:02 mail 1516 SEND !ERROR -1 (49) binding socket

    When running BBSlink:
    3/10 09:36:29 term Node 1 <Codefenix> !TELGATE ERROR -1 (49) binding to socket 1524

    I don't normally see these when running sbbsctrl.exe.

    That error is #define WSAEADDRNOTAVAIL (WSABASEERR+49)
    from https://learn.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-c
    odes-2
    "Cannot assign requested address.
    The requested address is not valid in its context. This normally results from an attempt to bind to an address that is not valid for the local computer. This can also result from connect, sendto, WSAConnect, WSAJoinLeaf, or WSASendTo when the remote address or port is not valid for a remote computer (for example, address or port 0)."

    Check your OutboundInterface setting in ctrl/sbbs.ini
    --
    digital man (rob)

    This Is Spinal Tap quote #21:
    So when you're playing you feel like a preserved moose on stage?
    Norco, CA WX: 52.2øF, 96.0% humidity, 0 mph ENE wind, 0.14 inches rain/24hrs --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Codefenix@1:103/705 to Digital Man on Fri Mar 10 16:20:27 2023
    Re: Socket Binding Error 49
    By: Digital Man to Codefenix on Fri Mar 10 2023 12:12 pm

    Check your OutboundInterface setting in ctrl/sbbs.ini

    I have it as 0.0.0.0, the default. Never had to modify it while using sbbsctrl.exe. Should it need changed if running sbbs.exe?

    |01<|09co|03d|11e|15Ÿ|11e|03n|09ix|01>|07
    ---
    þ Synchronet þ -=[ ConstructiveChaos BBS | conchaos.synchro.net ]=-
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Codefenix on Fri Mar 10 17:01:29 2023
    Re: Socket Binding Error 49
    By: Codefenix to Digital Man on Fri Mar 10 2023 04:20 pm

    Re: Socket Binding Error 49
    By: Digital Man to Codefenix on Fri Mar 10 2023 12:12 pm

    Check your OutboundInterface setting in ctrl/sbbs.ini

    I have it as 0.0.0.0, the default. Never had to modify it while using sbbsctrl.exe. Should it need changed if running sbbs.exe?

    No, I can't think of any reason why that would be different between the 2. The actual binding code/logic is in sbbs.dll, so which "front-end" .exe you use shouldn't make any difference in that case. Is it possible that maybe you've given Windows firewall an exemption for sbbsctrl.exe to bind outbound ports, but not sbbs.exe?
    --
    digital man (rob)

    This Is Spinal Tap quote #31:
    Viv Savage: Quite exciting, this computer magic!
    Norco, CA WX: 53.3øF, 99.0% humidity, 0 mph ENE wind, 0.47 inches rain/24hrs --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)