Reply To: Post here for support on the OzzMaker SARA-R5 LTE-M GPS + 10DOF

Home Forums Forums Technical Support for the OzzMaker SARA-R5 LTE-M GPS + 10DOF Post here for support on the OzzMaker SARA-R5 LTE-M GPS + 10DOF Reply To: Post here for support on the OzzMaker SARA-R5 LTE-M GPS + 10DOF

#18558
julienvm
Participant

Here is my script.

It works when proxies=proxies is removed (using wifi), but fails when proxies are set (attempting to use ppp).

import requests
proxies = {
‘http’: ‘http :// 192.168.201.2 ‘,
‘https’: ‘http :// 192.168.201.2 ‘,
}
x = requests.get(‘https://google.com ‘, proxies=proxies)
print(x.text)

(I added spaces in the definition of proxies as otherwise this reply won’t be accepted by the forum server)

runtime errors:
ConnectionRefusedError: [Errno 111] Connection refused
Failed to establish a new connection: [Errno 111] Connection refused
HTTPSConnectionPool(host=google.com, port=443): Max retries exceeded with url: / (Caused by ProxyError(Cannot connect to proxy, Failed to establish a new connection: [Errno 111] Connection refused)))

I’m looking for help for either setting the connection as default, or for using a python script. I just would like the raspberry pi to connect to the internet via ppp.

Thank you

Blip, blop, bloop…