Opened 3 weeks ago

Last modified 3 weeks ago

#65535 assigned defect

rtl-sdr @20220115-5e73f90f rtl_tcp does not listen on specified port

Reported by: Waffle2 Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: monterey Cc:
Port: rtl-sdr


Using rtl_tcp on Macosx 12.5 does not work as expected. A command line such as -a -p 1234 should result with rtl_tcp listening on port 1234. Instead, it gives a spurious bind error, and listens on what appears to be a random port.

rtl_tcp -a -p 1234 
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
Tuned to 100000000 Hz.
rtl_tcp bind error: Invalid argumentlistening...
Use the device argument 'rtl_tcp=' in OsmoSDR (gr-osmosdr) source
to receive samples in GRC and control rtl_tcp parameters (frequency, gain, ...).
lsof -i -n | grep rtl
rtl_tcp   7371            dlr    5u  IPv4 0x4c8c6c1688efaf9d      0t0    TCP *:51345 (LISTEN)

Different runs appear to listed on other, random, ports.

Change History (2)

comment:1 Changed 3 weeks ago by jmroot (Joshua Root)

Keywords: monterey added; rtl-sdr Monterey rtl_tcp bind error removed
Owner: set to michaelld
Port: rtl-sdr added
Status: newassigned

Are you doing this as root? If not, you won't be able to bind to ports below 1024, and presumably the software is automatically changing to a random unused port that will work.

comment:2 Changed 3 weeks ago by Waffle2

Please note port 1234 > 1024. Yes, I tried as root, and as not root.

Note: See TracTickets for help on using tickets.