I have an id.php page on one Domain that creates a unique visitor "id" that uses the user's IP address: that is displayed like this "Client ID : aeiufweiu2h5" the user's IP address is 182.55.68.2
I'm trying to do a file_get_contents()
from that page to another Domain "idtest.php" to put the content of the page in a string, but the problem is this page makes the request with the server IP address.
The result is always the same "Client ID : 2ghg43jjjh5443" the IP address of the server is 192.55.0.2 (this is the IP of the php server)
I tried curl, regex and I have a dynamic IP address but the result is the same.
Is there any way to do this whit the clients user IP-address?
Javascript, ajax, jsonp, jquery.....?