Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-18-2015, 07:15 AM   #1
fiacca
Member
fiacca began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2013
Device: samsung smart pc tacblet
Calibre Binding to a Specific NIC

Good morning, I hope this is the right section.
I am experiencing problems in having Calibre connect to Internet because my company's official connection has been heavily limited.
I have a second connection which goes to a different card in the same computer but it seems that calibre "sees" only the first, official one.
I have tried different configurations, even using FOrceBindIP, but no success.
While I would like to know if there is a fast way to solve the problem, I could suggest to develop an option to bind the program to a specific NIC among those present in the computer.
I know that MIRC chat program has this option and it is working well :-)

Best regards Fiacca
fiacca is offline   Reply With Quote
Old 02-18-2015, 07:16 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: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Preferences->Tweaks

And by default calibre binds to 0.0.0.0 which is all NICs
kovidgoyal is offline   Reply With Quote
Advert
Old 02-18-2015, 07:22 AM   #3
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,077
Karma: 14079267
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Quote:
Originally Posted by fiacca View Post
I have a second connection which goes to a different card in the same computer but it seems that calibre "sees" only the first, official one.
I have tried different configurations, even using FOrceBindIP, but no success.
While I would like to know if there is a fast way to solve the problem, I could suggest to develop an option to bind the program to a specific NIC among those present in the computer.
That option already exists: Preferences -> Tweaks -> server_listen_on = 'ip address' (default 0.0.0.0, or all)
mbovenka is offline   Reply With Quote
Old 02-18-2015, 07:46 AM   #4
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Quote:
Originally Posted by mbovenka View Post
That option already exists: Preferences -> Tweaks -> server_listen_on = 'ip address' (default 0.0.0.0, or all)
I think that what Kovid is suggesting is that if you want a specific Nic you should change that to the IP address of the Nic you want to use and then restart Calibre.
itimpi is offline   Reply With Quote
Old 02-18-2015, 07:47 AM   #5
fiacca
Member
fiacca began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2013
Device: samsung smart pc tacblet
Quote:
Originally Posted by kovidgoyal View Post
Preferences->Tweaks

And by default calibre binds to 0.0.0.0 which is all NICs
Thanks for you fast reply. I probably was not clear so I will try to be better now:

My machine (Win 7) has two network cards, one for the company network, the other one for a private internet connection.

Network Company: IP Address 192.168.1.160
Subnet 255.255.254.0
Default Gateway 192.168.1.29
Private Internet: IP Address 192.168.2.2
Subnet 255.255.255.0
Default Gateway 192.168.2.1

Until a few days ago Calibre was able to properly download metadata in order to get book's covers and details.

Then, due to a change in company proxy, nothing was working anymore; I was however able to get emule and bit torrent working using FOrceBindIP and Mirc using the internal option to bind it to a specific NIC.

I tried ForceDindIP with Calibre, but it was not working, and tried you suggestion in Tweaks -> what interfaces should the content server listen on, but no success (I hope I went to the correct place).

It seems that the program goes always for the Company Network and not for the Private Internet; of course, if I physically disconnect the Company network cable everything works fine.

ciao (I am from Italy) Piero
fiacca is offline   Reply With Quote
Advert
Old 02-18-2015, 07:52 AM   #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: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You are asking how to change the default route calibre uses to connect to servers on the internet? There is no way to do that. calibre will use whatever route is specified as default in the OSes routing tables.

What you can do is run a http proxy server and ask calibre to use that with the http_proxy environment variable.
kovidgoyal is offline   Reply With Quote
Old 02-18-2015, 10:18 AM   #7
loviedovie
Addict
loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.
 
Posts: 295
Karma: 2139988
Join Date: Nov 2014
Device: bookeen
If you run an SSH server you can pipe and forward ports and traffic to whicever external ip and port you want throguh your server.

You can install the SSH server on the one that Calibre is running or another remote computer.

Linux OS comes with SSH you can enable. For Windows your best option is using Cygwin SSH implementation.

Last edited by loviedovie; 02-18-2015 at 10:21 AM.
loviedovie is offline   Reply With Quote
Old 02-18-2015, 11:43 AM   #8
fiacca
Member
fiacca began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2013
Device: samsung smart pc tacblet
Quote:
Originally Posted by loviedovie View Post
If you run an SSH server you can pipe and forward ports and traffic to whicever external ip and port you want throguh your server.

You can install the SSH server on the one that Calibre is running or another remote computer.

Linux OS comes with SSH you can enable. For Windows your best option is using Cygwin SSH implementation.
Thanks a lot all for their help. I just solved the problem assigning a lower manual metric to the Private Internet Card; the only problem is that all traffic is routed through this, while in a perfect world I would like to manage any given application.

Thanks again Fiacca
fiacca is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open Calibre to a specific library? BookJunkieLI Calibre 30 03-18-2019 09:00 PM
Content Server - binding to wrong networkadapter sr71 Library Management 1 02-28-2013 03:33 AM
NEED HELP! (using Calibre for a specific purpose) peterpullman Conversion 8 10-21-2011 02:06 AM
I'm Nic nboshart Introduce Yourself 5 09-17-2009 09:34 AM


All times are GMT -4. The time now is 04:57 AM.


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