Open jbrea opened 2 years ago
1) Have a look at dict.conf configuration file 2) Does "dict -h localhost -p 2628 -I -v" work as expected in both cases? 3) What does "netstat -lntp | grep 2628" say?
Thanks for the support!
# Usually all you will ever need here is the server keywords.
# Refer to the dict manpage for other options.
# It will only check the second server if the first fails
server localhost
# server dict.org
$ dict -h localhost -p 2628 -I -v
Configuration file:
server localhost
Cannot connect to any servers
ss
instead of netstat
.
$ ss -lntp | grep 2628
LISTEN 0 10 0.0.0.0:2628 0.0.0.0:*
Thanks.
1.
$ getent hosts
127.0.0.1 localhost
$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
I ran into a weird behavior: Everything runs normally when I am connected to the internet (wlan or ethernet), e.g.
When I am offline I get
but I can still access and query the local dict server with
Any ideas why dict fails to connect to the server when I am offline?