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

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -

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