![]() |
#1 |
Member
![]() Posts: 19
Karma: 10
Join Date: Oct 2016
Device: Samsung Galaxy Note 10.1 (GT-N8013)
|
[Android] CC won't connect to Calibre
I'm using a Samsung tablet (Samsung Galaxy Note 10.1, wifi only), and a PC running Ubuntu 16.04.
The problem started a few months ago after I replaced my old USB modem. I would usually connect to the internet on my pc, then share to my tablet. I relied on the default connection settings in CC. Now I use 3g wifi dongle, which can accept multiple wifi connections so I don't need to share to my tablet anymore. I can connect to the content server just fine, but when I try to use the wireless connection, CC sees Calibre but doesn't connect. It shows that little message box about wrong IP address. I should mention that for maybe upward of two months now, CC wouldn't even detect Calibre, no matter what I did. I visited my dongle's web page to change it's address. From 192.168.0.101 back to it's original 192.168.0.1. The DHCP IP pool range is from 192.168.0.100 to 192.168.0.200. Normally, with the .101 value, my pc would take .100 and my tablet would take .101 which is the same IP as the router. It meant I couldn't access the internet on both devices simultaneously. I didn't realize this until a few days ago. I'm still not sure if that's the problem. So instead of connecting both devices to the dongle, I decided to connect my pc using a broadband connection then share to my tablet, just like before. [the same dongle]. When I did this, I had multiple ip addresses, non of which CC accepted. It didn't even detect Calibre most of the time. Sometimes, I'd change something, then it would but wouldn't connect. I've tried everything I can think of. I read CC's FAQs multiple times. I completely turned off my firewall, I don't use an antivirus. I've tried fixed ports and IP addresses. I'd really appreciate some help with this. I've relied on the content server to send books to my tablet these past months. But I've been unable to sync between both devices which is really what I need. Here are some screenshots: 1. The usual error message. 2. Calibre recognizes my tablet when I connect via USB. 3. CC finds calibre but non of these two puts me through to calibre. I should add that before I began having this problem either of these could connect CC to Calibre. Sometimes either one or the other. 4. The second option connects me to the content server. 5. Results of debugging device detection: 6. Sometimes content server and wireless connection have different addresses, which I read on CC's FAQ page is normal. I make sure the ports are different. 7. I know it won't work but I tried to use the content server's port for the wireless connection. I get this screen, which is what I'm supposed to see if the CC successfully connects via the wireless connection. But of course, this is next: CC's log file is attached. calibre.companion.debug.log (1).txt |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,362
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
It is very hard to know what is happening here.
First thing: the computer running calibre seems to have 2 IP addresses on the same subnet. That isn't a good thing. According to the debug log, CC sees: Code:
WDConnection: Broadcasting ... 2016-12-21 11:50:28.941: WDConnection: MDNS ServiceAdded. name=Books in calibre (on ***** port 8080), address=192.168.0.100, port=8080 2016-12-21 11:50:30.991: WDConnection: received broadcast response calibre wireless device client (on *****);8080,9090, address 192.168.0.101 Later we see CC attempting to connect to the .101 address and succeeding Code:
2016-12-21 11:51:11.551: ContentServer: creating connection to http://192.168.0.101:8080/ 2016-12-21 11:51:11.705: ContentServer: checking authentication 2016-12-21 11:51:11.895: ContentServer: creating connection to http://192.168.0.101:8080/ 2016-12-21 11:51:12.073: Feedparser got category string urn:calibre:main 2016-12-21 11:51:12.101: Opds DataManager addData: start=0, finish=8, url=opds Code:
2016-12-21 11:58:30.315: WDConnection: MDNS ServiceAdded. name=calibre smart device client (on ***** port 8090), address=192.168.0.100, port=8090 2016-12-21 11:58:32.459: WDConnection: my ip address is: 192.168.0.102 2016-12-21 11:58:32.464: WDConnection: trying server address 192.168.0.100 port 8090 2016-12-21 11:58:35.472: Attempt to connect resulted in exception java.net.SocketException: failed to connect to /192.168.0.100 (port 8090) after 5000ms: isConnected failed: EHOSTUNREACH (No route to host) In another instance, CC seems to be on the right network but calibre doesn't answer the connection request. Code:
2016-12-21 12:00:42.929: WDConnection: MDNS ServiceAdded. name=calibre smart device client (on ***** port 8090), address=192.168.0.100, port=8090 2016-12-21 12:00:44.984: WDConnection: received broadcast response calibre wireless device client (on *****);8080,8090, address 192.168.0.101 2016-12-21 12:00:45.006: WDConnection: using broadcast server address 192.168.0.101 port 8090 2016-12-21 12:00:49.984: WDConnection: my ip address is: 192.168.0.102 2016-12-21 12:00:49.986: WDConnection: trying server address 192.168.0.101 port 8090 2016-12-21 12:00:54.990: Attempt to connect resulted in exception java.net.SocketTimeoutException: failed to connect to /192.168.0.101 (port 8090) after 5000ms In terms of solving this, the first thing to do is to ensure that the calibre computer has one IP address on the local subnet. Once that is true then the problems might go away. If they do not then more work is needed. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 19
Karma: 10
Join Date: Oct 2016
Device: Samsung Galaxy Note 10.1 (GT-N8013)
|
Thanks, Chaley.
I just got back home from school and downloaded CC to my sister's android phone. It connected successfully, no tweaking required. I tried to connect mine immediately afterward, and for the first time in months it did connect. I tried a second time to be sure it wasn't a fluke. It connected. Then my pc's wifi temporarily disconnected, and the problem started all over again. Until I connected my sister's phone. I could then connect again. I wonder why that is. |
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,362
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Do the two phones use the same WiFi band? One might use 2.4 ghz and the other 5 ghz. If so then the router might behave differently. What I am thinking is that there are some issues during the process of mapping an IP address to a device, and that some difference between how your sister's and your phones are connected is triggering these "issues". The way connecting works is:
|
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 19
Karma: 10
Join Date: Oct 2016
Device: Samsung Galaxy Note 10.1 (GT-N8013)
|
I began using a fixed IP on my tablet because of the connection issues.
I figured that was one less IP address to worry about. Since CC on my sister's phone is new, it's using the default connection settings, as is mine. Something I just remembered: my CC has four options for connecting to Calibre.
We're using the most recent version of CC. I know this "varies with device" according to the additional information on Play Store. As for the frequency band, I'm using a low-end dongle. It probably doesn't support 5 GHz, as I have not seen an option to change bands on the router's webpage. I successfully connected to Calibre today, but it took three hours to sync about 4400 books (It used to be maybe an hour or less and this dongle is faster than the last one. Same service provider), and it disconnected twice before that in the middle of receiving books from Calibre. I'm thankful it's connecting at all. Here's the most recent log: calibre.companion.debug.log.txt.zip Thanks a lot for your help. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,362
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 19
Karma: 10
Join Date: Oct 2016
Device: Samsung Galaxy Note 10.1 (GT-N8013)
|
Alright, then.
I've decided to keep only a few books at a time on my tablet. The previous decision to keep so many books in CC was in case my pc ever got irreparable damaged somehow or stolen. But I suppose I can work around that. As long as I don't have the problem of CC finding Calibre, it's all good. Thanks again. ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre won't connect to iTunes (OS X) | Devon | Devices | 73 | 11-26-2014 05:32 PM |
Calibre won't connect to Kobo Aura HD | ophelia | Devices | 1 | 11-09-2013 05:00 PM |
Glo Glo Won't Connect Wirelessly to Calibre | ciscopixie | Kobo Reader | 14 | 06-08-2013 03:58 AM |
Calibre won't connect to Stanza | Mikki_102 | Calibre | 2 | 06-15-2012 08:04 AM |
Calibre won't connect to iTunes | bookcroc | Devices | 17 | 02-05-2011 02:11 PM |