the_oliver Posted April 27, 2008 Share Posted April 27, 2008 Hello, I have a script which people can send data to by posting from a form. This can be done from any other server. Im trying to find a way of determining the IP address of the server the form has been posted from. Can anyone suggest a good way to go about this? (I need my scrip to determine it, not have them post it as part of the form data.) Many Thanks! Link to comment https://forums.phpfreaks.com/topic/103160-determining-ip-of-server-form-is-posted-from/ Share on other sites More sharing options...
woobarb Posted April 27, 2008 Share Posted April 27, 2008 Are you inferring you have multiple servers all dumping into a db and you need to know which one server the client the page or do actually want the clients ip? if so: $cip = $_SERVER['REMOTE_ADDR']; else $sip = $_SERVER[''SERVER_ADDR']; Link to comment https://forums.phpfreaks.com/topic/103160-determining-ip-of-server-form-is-posted-from/#findComment-528433 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.