Enable only ipv4 or bind only custom address

Debian, server 2.4.13, etc. Ive read “Please read before posting”
Is it possible to bind server only to ipv4 ports\bind to one ip\disable ipv6?
Current version of the server dosnt have anything like this.
Thx

I don’t understand what it is that you are trying to accomplish.
Perhaps you can (re-)try?

If it is about disabling IPv6 - perhaps this helps(?):

Ty, but i knew it and It didnt help.
Urbackup bins to all interfaces, all ipv4 and ipv6 of them. But i need to launch it only, for example, 192.168.0.1:55414 and other necessary ports binded to 192.168.0.1

Sorry - don’t know a way of doing this.
Can I ask why you need this?

It looks that this functionality is indeed missing.
Maybe you can use firewall rules as a workaround? Deny by default, allow only on selected interface/IP address.

to make it more secure. If you have ipv4+ipv6 enabled you need to pay attention 2+ times more. Work is twiced, bugs pool are bigger.
Also i bored to see spam messages in log
“ERROR: Sending broadcast failed! (ipv6)”

there is a partial solution:
go
/etc/default/urbackupsrv
change
LOGLEVEL=“debug”
to warn, info or error
LOGLEVEL=“warn”
also set
BROADCAST_INTERFACES=""

See the code below:
The ctl-commands are actually working.
However, the results are gone after a reboot.
So the question seems to be more like “how to make it sticky”?

Before the ctl-commands:

root@bdr:/home/will# 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: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:0c:29:d6:15:89 brd ff:ff:ff:ff:ff:ff
    inet 192.168.139.246/24 brd 192.168.139.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::20c:29ff:fed6:1589/64 scope link
       valid_lft forever preferred_lft forever

And below is after

    root@bdr:/home/will# sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
    net.ipv6.conf.all.disable_ipv6 = 1
    root@bdr:/home/will# sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
    net.ipv6.conf.default.disable_ipv6 = 1
    root@bdr:/home/will# sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1
    net.ipv6.conf.lo.disable_ipv6 = 1
    root@bdr:/home/will# 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
    2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
        link/ether 00:0c:29:d6:15:89 brd ff:ff:ff:ff:ff:ff
        inet 192.168.139.246/24 brd 192.168.139.255 scope global eth0
           valid_lft forever preferred_lft forever
    root@bdr:/home/will#