Port Bindings on Ubuntu
lucaz82 opened this issue · 1 comments
lucaz82 commented
Hi,
I just tried your server manager on Linux while following your instructions.
It seems the binary binds only on localhost and the game-port 2302
not at all.
This results in server and website not available but on this machine. one should probably use the binding 0.0.0.0
root@nb001:/dayz# ss -tlpn
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 100 0.0.0.0:21063 0.0.0.0:* users:(("python3",pid=1989441,fd=87))
LISTEN 0 511 127.0.0.1:2312 0.0.0.0:* users:(("Server-Manager ",pid=1993358,fd=23))
LISTEN 0 511 127.0.0.1:2313 0.0.0.0:* users:(("Server-Manager ",pid=1993358,fd=22))
LISTEN 0 4096 0.0.0.0:51821 0.0.0.0:* users:(("docker-proxy",pid=1988329,fd=4))
LISTEN 0 511 0.0.0.0:80 0.0.0.0:* users:(("nginx",pid=1989741,fd=15),("nginx",pid=1989740,fd=15),("nginx",pid=1989739,fd=15),("nginx",pid=1989738,fd=15),("nginx",pid=1989371,fd=15))
LISTEN 0 511 0.0.0.0:81 0.0.0.0:* users:(("nginx",pid=1989741,fd=19),("nginx",pid=1989740,fd=19),("nginx",pid=1989739,fd=19),("nginx",pid=1989738,fd=19),("nginx",pid=1989371,fd=19))
LISTEN 0 4096 0.0.0.0:8086 0.0.0.0:* users:(("docker-proxy",pid=1988435,fd=4))
LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=1987311,fd=3))
LISTEN 0 1024 0.0.0.0:8056 0.0.0.0:* users:(("govee",pid=1988550,fd=16))
LISTEN 0 128 0.0.0.0:8123 0.0.0.0:* users:(("python3",pid=1989441,fd=15))
LISTEN 0 511 0.0.0.0:443 0.0.0.0:* users:(("nginx",pid=1989741,fd=17),("nginx",pid=1989740,fd=17),("nginx",pid=1989739,fd=17),("nginx",pid=1989738,fd=17),("nginx",pid=1989371,fd=17))
LISTEN 0 100 0.0.0.0:1883 0.0.0.0:* users:(("mosquitto",pid=1988598,fd=4))
LISTEN 0 4096 0.0.0.0:3003 0.0.0.0:* users:(("docker-proxy",pid=1988383,fd=4))
LISTEN 0 4096 0.0.0.0:8091 0.0.0.0:* users:(("docker-proxy",pid=1988354,fd=4))
LISTEN 0 4096 0.0.0.0:3100 0.0.0.0:* users:(("docker-proxy",pid=1988613,fd=4))
LISTEN 0 128 192.168.188.25:40000 0.0.0.0:* users:(("python3",pid=1989441,fd=79))
LISTEN 0 4096 0.0.0.0:8000 0.0.0.0:* users:(("docker-proxy",pid=1988670,fd=4))
LISTEN 0 100 [::]:21063 [::]:* users:(("python3",pid=1989441,fd=88))
LISTEN 0 4096 [::]:51821 [::]:* users:(("docker-proxy",pid=1988336,fd=4))
LISTEN 0 511 *:8080 *:* users:(("node",pid=1988693,fd=22))
LISTEN 0 511 [::]:80 [::]:* users:(("nginx",pid=1989741,fd=16),("nginx",pid=1989740,fd=16),("nginx",pid=1989739,fd=16),("nginx",pid=1989738,fd=16),("nginx",pid=1989371,fd=16))
LISTEN 0 511 [::]:81 [::]:* users:(("nginx",pid=1989741,fd=20),("nginx",pid=1989740,fd=20),("nginx",pid=1989739,fd=20),("nginx",pid=1989738,fd=20),("nginx",pid=1989371,fd=20))
LISTEN 0 4096 [::]:8086 [::]:* users:(("docker-proxy",pid=1988441,fd=4))
LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=1987311,fd=4))
LISTEN 0 511 *:3000 *:* users:(("node",pid=1989405,fd=21))
LISTEN 0 128 [::]:8123 [::]:* users:(("python3",pid=1989441,fd=16))
LISTEN 0 511 [::]:443 [::]:* users:(("nginx",pid=1989741,fd=18),("nginx",pid=1989740,fd=18),("nginx",pid=1989739,fd=18),("nginx",pid=1989738,fd=18),("nginx",pid=1989371,fd=18))
LISTEN 0 100 [::]:1883 [::]:* users:(("mosquitto",pid=1988598,fd=5))
LISTEN 0 4096 [::]:3003 [::]:* users:(("docker-proxy",pid=1988391,fd=4))
LISTEN 0 4096 [::]:8091 [::]:* users:(("docker-proxy",pid=1988360,fd=4))
LISTEN 0 4096 [::]:3100 [::]:* users:(("docker-proxy",pid=1988622,fd=4))
LISTEN 0 128 [fe80::dafc:93ff:fee7:1314]%wlp3s0:40000 [::]:* users:(("python3",pid=1989441,fd=82))
LISTEN 0 4096 [::]:8000 [::]:* users:(("docker-proxy",pid=1988680,fd=4))
root@nb001:/dayz# ps fax
1993358 ? Ssl 0:02 /dayz/dayz-server-manager
1993437 ? Rsl 9:03 \_ /dayz/DayZServer/DayZServer -config=serverDZ.cfg -port=2302 -profiles=profiles -servermod=@DayZServerManager -adminlog -dologs -freezecheck
Systeminfo
- no ufw
- no iptables
- dayz added as service as stated in readme
root@nb001:/dayz# uname -a
Linux nb001 5.15.0-47-generic #51-Ubuntu SMP Thu Aug 11 07:51:15 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
root@nb001:/dayz# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
root@nb001:/dayz# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether e4:7f:b2:1e:b2:05 brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether d8:fc:93:e7:13:14 brd ff:ff:ff:ff:ff:ff
inet 192.168.188.25/24 brd 192.168.188.255 scope global wlp3s0
valid_lft forever preferred_lft forever
inet6 fe80::dafc:93ff:fee7:1314/64 scope link
valid_lft forever preferred_lft forever
I think it uses the wrong socket binding, but if I'm making something wrong or I should test, let me know.
Thanks!
dporki commented
Also not binding anything but 2312 and 2313 on Debian 12. basically cannot join the game.
Edit: I got it running now.