SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2001
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with originating IP when passing data

    I'm passing data from a script to a URL which returns data for my script's use.

    But the URL checks the originating IP of the sender for security. The problem is that my script sends the current machine/user's IP (the machine accessing the page/script) instead of my host server IP as the originating IP.

    Is there a way to force a script to use it's server IP address as the originating IP?

    This happens both when using fsockopen as well as the Snoopy class.

    Thanks in advance,
    Transgressive

  2. #2
    ********* Callithumpian silver trophy freakysid's Avatar
    Join Date
    Jun 2000
    Location
    Sydney, Australia
    Posts
    3,798
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    $_SERVER["server_addr"]



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •