Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 562545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:33:57+00:00 2026-05-13T12:33:57+00:00

Imagine the following: User goes to script ( http://sample.org/test.php ), Script sends an HTTP

  • 0

Imagine the following:

  • User goes to script (http://sample.org/test.php),

  • Script sends an HTTP request to some other page (http://google.com/). For this example, we’ll say using curl.

  • The script sets the IP address of the request to the user’s IP, via CURLOPT_INTERFACE.

I know already that the requesting script will not receive the response, as the remote-host will send any responses to the IP address given in the request.

What I am wondering is what happens to this response? Assuming the client is on a LAN that has one external address and that all traffic sent to that IP is handled by a router acting as a DHCP server, will the response even get back to the user’s machine? If it did, would there be any way to ensure that it was handled by the user’s browser? And if so, how would the browser handle this, typically? Would it open a new window with Google in it?

I definitely have a follow up to this question, but I am very curious what goes on at this level, before I experiment further.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:33:58+00:00Added an answer on May 13, 2026 at 12:33 pm
    • The script sets the IP address of the request to the user’s IP, via CURLOPT_INTERFACE.

    Usually, this won’t work. Your ISP knows which IP address you are supposed to have and will not forward traffic coming from “fake” IP addresses.

    In particular, since you can only communicate one-way with a fake IP (since the answer won’t reach you), you would not be able to establish a working TCP connection, since TCP requires a three-way handshake. Thus, you wouldn’t be able to submit your web request.

    What I am wondering is what happens to this response? Assuming the client is on a LAN that has one external address and that all traffic sent to that IP is handled by a router acting as a DHCP server, will the response even get back to the user’s machine?

    If the user’s PC has an internal IP address and uses NAT, the router will not know which LAN machine to forward the packet to (since it did not see any outgoing request to which it could match that response). Therefore, the answer would be dropped.

    Even if you could get the response to reach the client:

    If it did, would there be any way to ensure that it was handled by the user’s browser?

    No. As stated above, a TCP request consists of a three-way handshake. This handshake has not been completed, so the operating system would just drop the packet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 316k
  • Answers 316k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I finally found an answer to this problem: The optional… May 13, 2026 at 11:30 pm
  • Editorial Team
    Editorial Team added an answer Django auth middleware doesn't generate any tables. Django does it… May 13, 2026 at 11:30 pm
  • Editorial Team
    Editorial Team added an answer do you have #!/bin/bash as the first line of the… May 13, 2026 at 11:30 pm

Related Questions

This is another stab into a problem I posted here . Please don't close
How would the following scenario best be implemented: There is a standardized user interface
I have the following model set up: class UserProfile(models.Model): Additional attributes for users. url
The TreeView is a nice way to present a hierarchy to users, but imagine
So, what is the best way to prevent an XSRF attack for a GAE

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.