Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Server

Notices

Reply
 
Thread Tools Search this Thread
Old 01-09-2019, 07:02 AM   #1
pk1966
Member
pk1966 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2019
Device: Kindle
IPv6 on Windows 10 breaks IPv4

I run a few different apps on a Windows 10 PC at home which are accessible from the Internet using Dynamic DNS and I've been reconfiguring them all to support both IPv6 and IPv4 and got most of them working fine.

Calibre is the last one I need to do, but I am having problems making it work with both IPv4 and IPv6 at the same time.

If I change "the interface on which to listen for connections" setting in the "Sharing over the Net -> advanced" settings to "::", then it listens happily on IPv6 and is fully accessible both from my own network and externally using IPv6. However, it doesn't seem to be listening on IPv4 and access from any non-IPv6 enabled client doesn't work.

If I revert the setting back to None, then IPv4 works, but IPv6 doesn't.

I'm running 3.37.0.

Has anyone else got this working or got any suggestions of how to fix it?

Thanks
Paul
pk1966 is offline   Reply With Quote
Old 01-09-2019, 08:29 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
the calibre server can listen only on a single interface. If you need multiple ones, your best beyt is to setup a reverse proxy in front of the server. See https://manual.calibre-ebook.com/server.html

although that contains instructions for linux servers, it should be similar on windows.
kovidgoyal is online now   Reply With Quote
Old 01-10-2019, 04:32 AM   #3
pk1966
Member
pk1966 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2019
Device: Kindle
OK, thanks for the swift response. I'll do as you suggest.

Do you have plans to enable it to listen on more than one interface?

I would point out that the docs suggest it is possible:

--listen-on
The interface on which to listen for connections. The default is to listen on all available interfaces. You can change this to, for example, "127.0.0.1" to only listen for connections from the local machine, or to "::" to listen to all incoming IPv6 and IPv4 connections.
pk1966 is offline   Reply With Quote
Old 01-10-2019, 05:31 AM   #4
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,091
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
It might seem strange, but why enable IP6 at all? Poorer security, more bugs and there is nothing I know of using IP6 not available on IP4.
Few domestic router/modems have any IP6 security settings, so every IP6 device on your LAN is visible to all the usual privacy thieves.
I know we are theoretically running out of IP4, but we won't for a long time as US Gov, Universities and big US corps have 10s or 100s of millions of unused or wasted IP4.

IP6 still needs more work.
Even privacy was a fudged after thought.
There is no reason to use it unless you are paid tester, or Facebook, Google etc wanting to acquire more personal & private info.
Disabling IP6 on everything is more secure, less buggy, faster and everything works.
Quoth is offline   Reply With Quote
Old 01-10-2019, 08:49 AM   #5
pk1966
Member
pk1966 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2019
Device: Kindle
Thanks for your view (and apologies for taking this further off topic)

I don't necessarily agree that IPv6 has poorer security, just different issues to IPv4 - the main problem lies in where IPv6 is just turned on without proper configuration. I do accept that enabling both protocols does expose a higher risk given the code behind each is different and therefore they have different vulnerabilities.

I took the decision to adopt IPv6 to be future-ready but as some devices, ISPs and even some household-name cloud infra providers are lagging behind on its adoption, I want to offer both until I can eventually turn off IPv4.

My internet gateway has separate firewall rules for IPv4 and IPv6, so only the devices and ports I choose are accessible from the Internet.
pk1966 is offline   Reply With Quote
Old 01-10-2019, 07:51 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It should say all available interfaces in one protocol family. Basically, the server has a single listening socket. A single socket can listen on either single interface or all interfaces in one protocol. It cannot as far as I know listen on multiple protocols.

Quote:
Originally Posted by pk1966 View Post
OK, thanks for the swift response. I'll do as you suggest.

Do you have plans to enable it to listen on more than one interface?

I would point out that the docs suggest it is possible:

--listen-on
The interface on which to listen for connections. The default is to listen on all available interfaces. You can change this to, for example, "127.0.0.1" to only listen for connections from the local machine, or to "::" to listen to all incoming IPv6 and IPv4 connections.
kovidgoyal is online now   Reply With Quote
Old 01-11-2019, 02:38 PM   #7
pk1966
Member
pk1966 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2019
Device: Kindle
Hi

Does this help?

https://docs.microsoft.com/en-us/win...-stack-sockets

I'm not a coder, so could be well off target, but thought I'd share anyway.
pk1966 is offline   Reply With Quote
Old 01-13-2019, 12:52 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's window specific, calibre has to work on multiple OSes, and I dont knwo of a robust cross-platform way to do dual stack sockets. There are various issues with various incompatible dual-stack implementations.
kovidgoyal is online now   Reply With Quote
Old 01-13-2019, 12:55 AM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The way to implement this robustly would be to add support for multiple listening sockets, not impossible, but not trivial either.
kovidgoyal is online now   Reply With Quote
Old 01-15-2019, 02:02 PM   #10
pk1966
Member
pk1966 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2019
Device: Kindle
Thanks for the feedback and keep up the good work!
pk1966 is offline   Reply With Quote
Old 01-15-2019, 11:46 PM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Actually, I was wrong, turns out I had already written the code to enable dual-stack sockets on all platforms, it just was not working on windows because of a bug in python, will be fixed in next release.
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie trying to configure calibre server over the internet with IPV6 ccpraveen Related Tools 6 01-28-2016 06:45 PM
Strange IPv6 error report mikebw Recipes 6 11-11-2015 11:37 AM
iTunes 11.1.4 Updates breaks on Windows 7 HarryT Apple Devices 42 02-23-2014 03:28 PM
pdf to mobi ipv6 error pavlos555 Conversion 3 05-20-2012 07:09 AM
As ipv4 becomes scarce, the price goes up. :) kennyc Lounge 3 03-27-2011 10:41 PM


All times are GMT -4. The time now is 09:42 AM.


MobileRead.com is a privately owned, operated and funded community.