B
B
Bogdan Gerasimenko2021-04-23 10:57:01
PHP
Bogdan Gerasimenko, 2021-04-23 10:57:01

What is the IP for outgoing PHP requests?

Hello,

To access the API, I needed to tell the IP from which the requests will originate.

I indicated the one that the hoster writes - but I was told that there were no calls from this IP. Then the technical support advised me to nslookup адрес_ftp_сервераfind out the real IP of the site using the command. It is indeed different from the IP of the whole server.

Therefore, the question arose: when a site makes outgoing connections / requests to other sites, does it burn its real IP? Does CloudFlare hide the real IP address of outgoing requests or just the server IP?

I would be grateful if you explain why the IP of the server and outgoing requests are so different.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
brar, 2021-04-23
@Kleindberg

From the console, you can find out "your" ip like this:
wget https://ipinfo.io -qO-
If they are dynamic, then of course, it makes no sense to send new ones to api technical support every time.

S
SKEPTIC, 2021-04-23
@pro100chel

If you snoop for cloudflare but make requests to other apis with a curl and other tools, then you burn the ip of your server / vds / hosting

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question