Join GitHub today
error "xfer: cannot find available port for xfer" when own_ip set #5
Weechat gives the error: "xfer: cannot find available port for xfer" when xfer.network.own_ip is set to a non-local-machine address.
My network router address is 192.168.1.1
Error started in 0.4.3 and continues to 0.4.4-dev
Yes, I made a mistake. The old code used to check xfer.network.own_ip to be sure it was valid, then set struct xfer.localaddress to that address (which then later gets sent to the person you are trying to connect with).... but it bind()s to the address that is connected to the irc server rather than xfer.network.own_ip.
The code now checks own_ip to be sure it is valid, but also tries to bind() to that address, which fails when it is not a local address. I'll work a fix over the weekend.