View Single Post
Old 01-03-2017, 07:04 PM   #13
momus
Junior Member
momus began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2017
Device: Kindle Paperwhite
This problem happened also to me

I have steps to reproduce this problem, this only happens when you change "server_listen_on" variable to value other than 0.0.0.0 or main interface IP.

I'm playing with my Raspberry PI2,I want to make it microserver.

some info:
calibre 2.74
hostname = malina.local
ipv4 = 192.168.0.50
main interface = wlan0

1. When server_listen_on is set to 0.0.0.0, avahi and calibre works together like a charm.
2. When server_listen_on is set to wlan0 IP (192.168.0.50), again, avahi and calibre works together like a charm.
3. but when I set server_listen_on = 127.0.0.1 then problem occurs. avahi hostname change to malina-2.local, with ip: 192.168.0.50, but calibre report malina.local with ip: 127.0.0.1.
4. problem not exists when I set
server_listen_on = ::1
or
server_listen_on = localhost (with this calibre show some warning from "CherryPy Checker:" and binds to ::1, but bonjour report ipv4 from wlan0 interface)


I want hide calibre behind proxy (nginx), ideal is to set calibre to listen on 127.0.0.1 only.


How to disable this feature (bonjour) in calibre-server without editing files? (lib/calibre/calibre/library/server/base.py).
I want add manual configuration to avahi with correct IP (ipv4 & ipv6) and port (nginx listen on 80).
Actually calibre-server bonjour only works with IPv4. When I set ::1, calibre get IPv4 from my wlan0 interface.

Last edited by momus; 01-03-2017 at 07:12 PM. Reason: additional info
momus is offline   Reply With Quote