View Single Post
Old 06-22-2017, 09:33 AM   #2
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,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by mobamoba View Post
I have 2 NICs on my server only one of which actually connects to the internet. Calibre is defaulting to the incorrect NIC meaning it's defaulting to the wrong IP. The Content Server allows me to specify an IP and that works fine; by contrast the Wireless Device server doesn't (well not that I can see).

How do I tell the Wireless Device connection to use the correct IP? I tried stopping and restarting it and it still binds to the wrong one. Is there some place I can manually specify this because the address it's binding to has no internet connection and I can't seem to make it bind to the IP that has internet? Thanks.

ETA: Using Calibre 3.0 on Windows.
In calibre, go to Preferences / Plugins. Search for "SmartDevice". Press "Customize plugin" and enter the IP address you want the driver to use.

That said, by default the driver binds to 0.0.0.0, which is all addresses on all NICs. I suspect something else is going wrong somewhere. If you run calibre in debug mode then you will see the full list of IP addresses visible to the device, along with the netmask and broadcast address. Something like this:
Code:
SMART_DEV (   1.99:  1.017) run All IP addresses 
{'{4AFD7AF6-F037-4FA9-B866-8B2334C445C9}': [{'netmask': u'255.255.255.255', 'broadcast': u'192.168.120.4', 'addr': u'192.168.120.4'}], 
'{F0151E9B-47CA-11E7-93A5-806E6F6E6963}': [{'netmask': u'255.255.255.255', 'broadcast': u'127.0.0.1', 'addr': u'127.0.0.1'}]}
chaley is offline   Reply With Quote