php - Getting IP Address of a user who sent a cURL request -


i want ip address of user sent request server using curl post method in php ?

i'm developing flight api, i'll requests using curl post method, i've ip address of client , validate weather ip address available or not. if available in db sent him response json.

is possible anyway in php ?

you can request ip address server variable.

$_server["remote_addr"]


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -