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! Quote 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']; Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.