curl / Mailing Lists / curl-users / Single Mail
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.

From: Dan Fandrich via curl-users <>
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
> $ curl -x socks5://
> 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.

Received on 2021-01-24