Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 03-17-2025, 08:39 AM   #1
thereisthat
Junior Member
thereisthat began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2023
Device: Kobo Aura One
Plugin to set proxy address to WiFi gateway

I use my Android's hotspot in order to connect to a self hosted Calibre OPDS server, which requires me to use KOReader's proxy function. Since my Android's hotspot ip address changes each time I enable it, it would be very useful if KOReader could set the proxy IP based on the WiFi connection default gateway.

Does anyone know where would I need to start looking at in order to write a plugin or user patch that does this?

Best regards,
thereisthat is offline   Reply With Quote
Old 03-17-2025, 01:12 PM   #2
thereisthat
Junior Member
thereisthat began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2023
Device: Kobo Aura One
In order to make it clearer, I access the OPDS server from KOReader running on a Kindle/Kobo, through my Android Smartphone's hotspot connection.
thereisthat is offline   Reply With Quote
Advert
Old 03-19-2025, 12:02 PM   #3
pazos
cosiñeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
If you mean http proxy, look at https://github.com/koreader/koreader...nager.lua#L627

Unfortunately there's no way to retrieve the gateway ip. You'll need some platform dependant code in your patch. On plain linux you can parse /proc/net/route or use ip or route tools. I don't know much about the kindle.
pazos is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PW How to make WiFi connection go through proxy winterjodi Kindle Developer's Corner 0 04-27-2024 04:36 PM
Plugin's are not using proxy? DictatorAlly Calibre 1 07-06-2020 11:23 PM
Is there anyway to set a static IP address on the Kobo Wifi? saladasalad Kobo Reader 3 07-11-2012 07:22 AM
CM7: setting proxy server for a WiFi connection ? rana Nook Developer's Corner 1 05-19-2011 09:29 AM
set proxy schuster Development 1 05-16-2011 01:53 PM


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


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