Skip to content

setup_udp_recv: bind: Address in use #12

@o-alquimista

Description

@o-alquimista
# udptunnel -v -s 4096 127.0.0.1:55820
Listening for TCP connections on port 4096
setup_udp_recv: bind: Address in use

But netstat doesn't show any instance of port 4096. I'm not using it for anything.

So I tried many different ports, but still udptunnel thinks they're all in use.

Any idea?

OpenWrt 23.05.2 (ramips/mt7621 architecture)
udptunnel 1.1-1 installed with opkg.

Activity

o-alquimista

o-alquimista commented on Feb 24, 2024

@o-alquimista
Author

Side note: the options parser is also misbehaving.

If I input

udptunnel -v -s 0.0.0.0:4096 127.0.0.1:55820

it outputs:

0.0.0.0:4096: invalid port number

It only seems to work with the port number alone (udptunnel -v -s 4096 127.0.0.1:55820)


UPDATE: Actually, it's documented in the usage and I didn't see it.

Usage: udptunnel -s TCP-port [-r] [-v] UDP-addr/UDP-port[/ttl]
    or udptunnel -c TCP-addr[/TCP-port] [-r] [-v] UDP-addr/UDP-port[/ttl]
     -s: Server mode.  Wait for TCP connections on the port.
     -c: Client mode.  Connect to the given address.
     -r: RTP mode.  Connect/listen on ports N and N+1 for both UDP and TCP.
         Port numbers must be even.
     -v: Verbose mode.  Specify -v multiple times for increased verbosity.

Strange, because on Linux it isn't like this. Or maybe the package version I have is older. I need to check that.

On Linux I compile from source. On OpenWrt I install the precompiled binary.

o-alquimista

o-alquimista commented on Feb 24, 2024

@o-alquimista
Author

I figured out that the "port in use" refers to port 55820, the port I use for Wireguard traffic. Of course it's being used! I think this is a bug.

This is the same issue reported in #9 and #8

changed the title [-]Port in use (except it isn't) on OpenWrt[/-] [+]setup_udp_recv: bind: Address in use[/+] on Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @o-alquimista

        Issue actions

          setup_udp_recv: bind: Address in use · Issue #12 · rfc1036/udptunnel