Package: dict Version: 1.13.0+dfsg-1 Severity: normal zira:~> strace dict -p 4444 foo |& grep '^connect.*sin_port' connect(3, {sa_family=AF_INET, sin_port=htons(2628), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 connect(3, {sa_family=AF_INET, sin_port=htons(2628), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
Even though I've provided the -p 4444 option, "dict" connects to port 2628. 127.0.0.1 comes from the "server localhost" line in the configuration file. The man page says: -p service or --port service Specifies the port (e.g., 2628) or service (e.g., dict) for connections. The default is 2628, as specified in the DICT Protocol RFC. Server/port combinations can be specified in the configuration file. This could be an error in the documentation, i.e. -p actually applies only to the server provided by -h (this probably makes sense, because the configuration file may contain several servers and changing the port for all of them with -p may be unexpected). -- System Information: Debian Release: bookworm/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 5.18.0-3-amd64 (SMP w/8 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages dict depends on: ii libc6 2.34-3 ii libmaa4 1.4.7-1 ii netbase 6.3 ii recode 3.6-24 dict recommends no packages. Versions of packages dict suggests: ii dictd [dict-server] 1.13.0+dfsg-1 ii gawk 1:5.1.0-1 ii m4 1.4.18-5 -- no debconf information -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)