Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: Obtain the real public IP address of mine with curl when using the socks5 proxy to access the corresponding api.
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Dan Fandrich via curl-users <curl-users_at_cool.haxx.se>
Date: Sun, 24 Jan 2021 08:46:05 -0800
On Sun, Jan 24, 2021 at 11:05:38PM +0800, Hongyi Zhao via curl-users wrote:
> See the following testings on my Ubuntu 20.10 host:
>
> $ curl https://api.ipify.org/
> 106.9.179.116
> $ curl -x socks5://127.0.0.1:18888 https://api.ipify.org
> 103.138.74.44
>
> I want to know if I still can obtain my real public IP address with
> curl even using the socks5 proxy to access the corresponding API. Is
> this possible?
What do you mean "real" IP address? Such external IP address services only have
access to the IP address used to connect to their servers and that's what they
return. If a proxy uses another address to contact the server, then that's what
they return. What address are you interested in? Your local machine's address?
The command "ip address" will give you that.
Dan
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2021-01-24
Date: Sun, 24 Jan 2021 08:46:05 -0800
On Sun, Jan 24, 2021 at 11:05:38PM +0800, Hongyi Zhao via curl-users wrote:
> See the following testings on my Ubuntu 20.10 host:
>
> $ curl https://api.ipify.org/
> 106.9.179.116
> $ curl -x socks5://127.0.0.1:18888 https://api.ipify.org
> 103.138.74.44
>
> I want to know if I still can obtain my real public IP address with
> curl even using the socks5 proxy to access the corresponding API. Is
> this possible?
What do you mean "real" IP address? Such external IP address services only have
access to the IP address used to connect to their servers and that's what they
return. If a proxy uses another address to contact the server, then that's what
they return. What address are you interested in? Your local machine's address?
The command "ip address" will give you that.
Dan
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2021-01-24