• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

TCP/UDP: Socket bind failed on local address [AF_INET] Can't assign requested ad

Scheduled Pinned Locked Moved OpenVPN
5 Posts 2 Posters 8.9k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    dplat
    last edited by Dec 24, 2013, 11:23 AM

    Hi Everyone!

    I am getting really mad: It's been 2 days since I've been trying to solve this problem unsuccessfully.
    Every time I start my OpenVPN server 2.3.2, it gives this error message (see log below).

    Where does my OpenVPN server take this 46.30.88.26 address from??? It really seems that I can't change it at all!
    I did a factory reset, reloaded my setttings, I even reinstalled pfSense from scratch and reloaded my setttings!!
    Still this same F******* address!

    THANK YOU!

    Dec 24 12:03:12 openvpn[46823]: Exiting due to fatal error
    Dec 24 12:03:12 openvpn[46823]: TCP/UDP: Socket bind failed on local address [AF_INET]46.30.88.26:8080: Can't assign requested address
    Dec 24 12:03:12 openvpn[46823]: Socket Buffers: R=[65228->65536] S=[65228->65536]
    Dec 24 12:03:12 openvpn[46823]: Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
    Dec 24 12:03:12 openvpn[46823]: Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
    Dec 24 12:03:12 openvpn[46823]: Control Channel Authentication: using '/var/etc/openvpn/server1.tls-auth' as a OpenVPN static key file
    Dec 24 12:03:12 openvpn[46823]: Diffie-Hellman initialized with 4096 bit key
    Dec 24 12:03:12 openvpn[46823]: NOTE: the current –script-security setting may allow this configuration to call user-defined scripts
    Dec 24 12:03:12 openvpn[46823]: MANAGEMENT: unix domain socket listening on /var/etc/openvpn/server1.sock
    Dec 24 12:03:12 openvpn[46823]: OpenVPN 2.3.2 amd64-portbld-freebsd8.3 [SSL (OpenSSL)] [LZO] [eurephia] [MH] [IPv6] built on Jul 24 2013

    1 Reply Last reply Reply Quote 0
    • P
      phil.davis
      last edited by Dec 24, 2013, 11:36 AM

      I guess this is your WAN public IP. That range is allocated to State Institute For Drug Control in the Czech Republic. Hopefully you are there  ;)
      http://myip.ms/view/ip_addresses/773740544/46.30.88.0_46.30.88.255

      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

      1 Reply Last reply Reply Quote 0
      • D
        dplat
        last edited by Dec 24, 2013, 11:57 AM

        Thank you Phil  :)

        Actually, I had a very bad inspiration! I changed the address in the log (bad choice!)
        I understand that you believe it is my WAN address! (I guess I should have chosen another one!).

        The one I have in my log is 88.45.66.X and I can't change it!

        Where does my OpenVPN server take this 88.45.66.X address from??? From which file?  How can I change it?

        Thanks!

        1 Reply Last reply Reply Quote 0
        • P
          phil.davis
          last edited by Dec 25, 2013, 4:18 AM

          88.45.66.0/24 is in Italy - maybe we are in the right country now? I guess this has to be a WAN IP given out by your ISP. Look in /cf/conf/config.xml and search for "88.45.60". If it is not there, then it must (should) be a dynamic IP from your ISP. Look in Status->Interfaces, the IP should appear on some interface.

          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

          1 Reply Last reply Reply Quote 0
          • D
            dplat
            last edited by Dec 25, 2013, 10:24 AM

            Hey Phil!
            Thank you for your response, I always appreciate your help.
            I didn't find the address in /cf/conf/config.xml but I believe it came from the cache of my ISP which kept this address that I used as a proxy/gateway a few days before! (It may have been kept in my adsl box cache, or remotely in my ISP proxy cache).
            I turned my box off for a few hours and now everything's back to normal!
            BTW I am a Unicef donator.
            Regards,
            Dennis
            http://www.unicef.org
            https://www.eff.org

            1 Reply Last reply Reply Quote 0
            1 out of 5
            • First post
              1/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received