Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KISSPORT does not override 8001 #342

Open
dranch opened this issue Jul 7, 2021 · 3 comments
Open

KISSPORT does not override 8001 #342

dranch opened this issue Jul 7, 2021 · 3 comments

Comments

@dranch
Copy link
Collaborator

dranch commented Jul 7, 2021

Per an email from Roger, N1XP from direwolf@groups.io, configuring an alternative KISSPORT only adds the new TCP port but the default port of 8001 isn't disabled. I have confirmed this only occurs on v1.7-A:

--
$ sudo direwolf -t 0 -d o -a 100 -c /etc/ax25/direwolf.conf
Dire Wolf DEVELOPMENT version 1.7 A (Jul 7 2021)
Includes optional support for: gpsd cm108-ptt

Reading config file /etc/ax25/direwolf.conf
Audio device for both receive and transmit: plughw:1,0 (channel 0)
Channel 0: 1200 baud, AFSK 1200 & 2200 Hz, E+, 44100 sample rate / 3.
Ready to accept AGW client application 0 on port 8003 ...
Ready to accept KISS TCP client application 0 on port 8001 ... <---------------------------------
Ready to accept KISS TCP client application 0 on port 8004 ...

Here is a confirmation of the open ports:

$ sudo lsof -nPi | grep direwolf
direwolf 792 root 3u IPv4 18033 0t0 TCP *:8003 (LISTEN)
direwolf 792 root 7u IPv4 20010 0t0 TCP *:8001 (LISTEN) <----------------
direwolf 792 root 9u IPv4 18035 0t0 TCP *:8004 (LISTEN)

This seems like this is a bug introduced in Direwolf v1.7 as I don't see this behavior with Direwolf v1.6:

$ sudo direwolf -t 0 -d o -a 100 -c /etc/ax25/direwolf.conf
Dire Wolf version 1.6
Includes optional support for: gpsd cm108-ptt

Reading config file /etc/ax25/direwolf.conf
Audio device for both receive and transmit: plughw:1,0 (channel 0)
Channel 0: 1200 baud, AFSK 1200 & 2200 Hz, E+, 44100 sample rate / 3.
Ready to accept AGW client application 0 on port 8003 ...
Ready to accept KISS TCP client application 0 on port 8004 ... <--------------------

@jschollenberger
Copy link

Still an issue on version 1.7 B (Oct 26 2021). I actually came here to report what I though was a different bug in that it throws this confusing error message:

Some other application is probably already using port 8001.
Try using a different port number with KISSPORT in the configuration file.
Ready to accept AGW client application 0 on port 8002 ...
Ready to accept KISS TCP client application 0 on port 8003 ...

It seems you've discovered the real issue... that it really is trying to bind to 8001. I confirmed that by only running one instance with KISSPORT set to 8003 and I see it bind to both.

@j4nr6n
Copy link

j4nr6n commented Feb 8, 2023

Still seems to be an issue.
Dire Wolf DEVELOPMENT version 1.7 E (Feb 7 2023)

@j4nr6n
Copy link

j4nr6n commented Feb 8, 2023

See this groups.io thread that I found in #443

However there is an easy workaround to prevent DireWolf from opening the default KISS port 8001:

# Do not open the default KISS port 8001
KISSPORT 0 
# Open alternate KISS port 8100
KISSPORT 8100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants