jvde-github / AIS-catcher

AIS receiver for RTL SDR dongles, Airspy R2, Airspy Mini, Airspy HF+, HackRF, SDRplay and SoapySDR

Home Page:https://aiscatcher.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker version under Debian 12 - UDP and TCP not received on network

bcn2 opened this issue · comments

commented

We are running the docker version. The SDR is recognized correctly, the AIS data do appear in the terminal.
The -u option gets honored ("Open Socket: 127.0.0.1 Port 10111"), however no data received neither locally nor in the network.
In OpenCPN the repective communications are active.
We tried with 127.0.0.1 - LocalHost - with OpenCPN running on the same machine and with 192.168.n.255, here with 0.0.0.0 on the receiving systems in our network. Several machines with Linux, macOS and Windows.
Another stream coming from an em-trak receiver on a different system is seen correctly and feeds into AIS-hub as well.

So short: anything we are perhaps missing to take into account with the docker version?

Hubert

I think this is because you run in a docker which has its own local network separate from the host. Can you try to run Docker with —network host

commented

Jasper, that did help. Thanks's a lot.
Does the -X option require --network host as well? Or other external UDP addresses like those of AIS-Hub?

Great! Note there might be better ways to connect the docker to your local network (which is more constraint).

I don’t know if it is required for -X to be honest. Will try when back at home. But -X will connect via TCP to port 4242 on Aiscatcher.org. As it is external you might not need the network switch.

Kind regards Jasper

Oh and maybe will add a comment on this in the documentation. It might help others.

commented

Good idea!
Adding another question regarding Docker: how to run from a local copy without downloading the image an every start-up?

I think now the download only happens if there is a new version? To achieve what you are saying I think you pull the container with docker pull … and then the docker run … I am not at home though so cannot be more precise and test 😀.

Btw, I think you also need the —network if you want to enable the built in map with -N 8100. So definitely good to clarify indeed

Ok, I have written something here: https://github.com/jvde-github/AIS-catcher?tab=readme-ov-file#more-docker-options

The webviewer you can publish on the host system by adding -p 8100:8100 (assuming 8100 is the webviewer port). And for UDP and TCP to the localhost you could try to use the bridge network address as an destination IP address.

I will close this one, as question has been answered. Many thanks, Jasper