View Single Post
Old 08-23-2017, 12:13 PM   #21
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,495
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Wryhder View Post
First step didn't work. I changed the port too.
No port forwarding rules. My router's more 3g WiFi Dongle. Can be used as both a modem and router. Pretty basic settings on its webpage.
The first step, 127.0.0.1, won't go through the dongle.
Quote:
I don't think it's the firewall as it's turned off, but perhaps I should read up on it.
*Something* on the laptop is blocking TCP connections.
Quote:
BTW, anything more than 32000 (port number) is invalid according to Calibre.
I have no idea why I put that restriction in.

It is time to check some really basic things. The examples, when I can provide them, are from my debian VPS.

Open a terminal and run netstat. Verify that calibre is actually listening on the port and that the listening ip address is 0.0.0.0.
Code:
www:~# netstat -t -l -p -v
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
[...]
tcp        0      0 *:9192                  *:*                     LISTEN      14151/calibre-serve
tcp        0      0 localhost:mysql         *:*                     LISTEN      14735/mysqld    
[...]
Verify that the port isn't being blocked at a base level (iptables):
Code:
iptables -L -vn > aaaaa
Open the file aaaaa (or whatever you called it) and look through what you have. If iptables is being used then there should be rules like the following.
Code:
Chain net2fw (1 references)
 pkts bytes target     prot opt in     out     source               destination
 508K   29M ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:80 /* HTTP */
You are looking for rules that do something with 127.0.0.1 or dpt:9090

As far as I can tell, Ubuntu uses the firewall ufw. I don't use ufw so I can't provide any examples. ufw can do process-based filtering. Try the commend
Code:
ufw status
to get a general list of what the firewall is doing.

Try running the command
Code:
ufw app list
to see if calibre is one of the apps that is being managed.
chaley is offline   Reply With Quote