[Python] Proxy works from mobile internet but fails with wifi

Discussão em 'Python' iniciado por Stack, Julho 6, 2025.

  1. Stack

    Stack Membro Participativo

    code:

    try:
    response = requests.get('http://httpbin.org/ip', proxies=proxies, timeout=25)
    print(response.status_code)
    print(response.text)
    except requests.exceptions.RequestException as e:
    print(f"Ошибка: {e}")


    What are the most likely reasons why the code fails when connected to WiFi but works when connected to a mobile hotspot, specifically regarding the requests.exceptions.RequestException being raised?

    I tried to use a lot of hostnames but nothing worked. A also tried simple get requests with this hostmanes and they work fine with wifi.

    Continue reading...

Compartilhe esta Página