i can't quite word it in the tutorial, but this is what I'm talking about Public IP: 10.0.0.1 Private IPs 192.168.0.1, 192.168.0.2 and 192.168.0.3 connect to argos.com google.com and ebay.com through the same port, the router recieves these packets and converts their addresses to the routers public address, The server processes this information and sends packets back to 10.0.0.1, But now we have three different destinations with then address and port of 10.0.0.1:80, How does the NAT work from there? Would the same packet be sent to all three computers?
I'm learning about private/public IPs, port forwarding and NAT, and still fail to see the answer to a simple question:  Suppose two users on the same network are communicating with a single server outside their network (say, me &amp; my wife send http requests to yahoo.com).  The server sees both users as a single public ip, and often - as in this case - communicating on the same port.  How does the router route the packets according to the two different connections? Is there any routing info inside the packet beyond ip/port?  Is there some 'session table' maintained somewhere? By whom and what exactly does it include?
Pass extra parameters to WebSQL callback function? Given a sample of n units out of a population of N, population median can be estimated by the sample median.  How can we get the variance of this estimator? What is a wave? Difference between shutdown and shutdownNow of Executor Service Why is Facebook PHP SDK getUser always returning 0? How do I audit my reputation? If I am concerned that my reputation score is incorrect, how can I audit it, or get a report of a detailed breakdown of my reputation? Consider the following figure from Faraway's Linear Models with R (2005, p. 59).    The first plot seems to indicate that the residuals and the fitted values are uncorrelated, as they should be in a homoscedastic linear model with normally distributed errors. Therefore, the second and third plots, which seem to indicate dependency between the residuals and the fitted values, suggest a different model.  But why does the second plot suggest, as Faraway notes, a heteroscedastic linear model, while the third plot suggest a non-linear model?  The second plot seems to indicate that the absolute value of the residuals is strongly positively correlated with the fitted values, whereas no such trend is evident in the third plot. So if it were the case that, theoretically speaking, in a heteroscedastic linear model with normally distributed errors  $$ \mbox{Cor}\left(\mathbf{e},\hat{\mathbf{y}}\right) = \left[\begin{array}{ccc}1 &amp; \cdots &amp; 1 \\ \vdots &amp; \ddots &amp; \vdots \\ 1 &amp; \cdots &amp; 1\end{array}\right] $$  (where the expression on the left is the variance-covariance matrix between the residuals and the fitted values) this would explain why the second and third plots agree with Faraway's interpretations.  But is this the case? If not, how else can Faraway's interpretations of the second and third plots be justified? Also, why does the third plot necessarily indicate non-linearity? Isn't it possible that it is linear, but that the errors are either not normally distributed, or else that they are normally distributed, but do not center around zero? Unparsed HTML shows on search result page Missing argument 2 for wpdb::prepare() Issue I'm having to update a WP installation for a community organisations from version 2.9.1 to the current 3.9.1.   The installation has a couple of custom built plugins that aren't documented.  I've just performed the WP version update and now I see a warning (Missing argument 2 for wpdb::prepare()) on every page that relates to the following line in the code of one of these custom built plugin:  $rows = $wpdb-&gt;get_results($wpdb-&gt;prepare("SELECT id, name FROM ".$table_name));   From what I've read online, this is due to a change in the coding, that requires 2 values to be sent to wpdb::prepare(), but I've no idea how the line of code given above, needs to be changed.  If someone could help me out, I'd really appreciate it. iPhone App CrashReport "Open in terminal" not working on nautilus as root When using natilus as root, open in terminal used to work as using with any user. However, when I press open in terminal when using nautilus as root now, it does nothing.  How to solve it?  The error:  GLib-GObject-CRITICAL **: g_object_set_data: assertion 'G_IS_OBJECT (object)' failed In my experimentation, I've used only BJTs as switches (for turning on and off things like LEDs and such) for my MCU outputs. I've been repeatedly told, however, that N-channel enhancement-mode MOSFETs are a better choice for switches (see  and , for examples), but I'm not sure I understand why. I do know that a MOSFET wastes no current on the gate, where a BJT's base does, but this is not an issue for me, as I'm not running on batteries. A MOSFET also requires no resistor in series with the gate, but generally DOES require a pull-down resistor so the gate doesn't float when the MCU is rebooted (right?). No reduction in parts count, then. There doesn't seem to be a great surplus of logic-level MOSFETs that can switch the current that cheap BJTs can (~600-800mA for a 2N2222, for example), and the ones that do exist (TN0702, for example) are hard to find and significantly more expensive. When is a MOSFET more appropriate than a BJT? Why am I continually being told that I should be using MOSFETs? Top-bar hat misplaced In my profile my hat is on the correct position, but not in the top-bar. This is new. It worked until now.    Works neither in Chrome nor in Firefox. Mile or miles? Singular or plural? Could you explain me please, why sometimes the word "mile" is used in singular, sometimes in plural, while in both cases it refers to several and not 1 mile.  Example:     They took part in a 26 mile long swimming race.   After 12 miles he got tired.   Thanks in advance to those who can enlighten me! How do I remove objects from an array in Java? Fastest way to copy HDD What is a "slug" in Django? Is it possible to browse the internet from a laptop so that the web sites you visit think you are browsing from a mobile device?  Say I need to connect via a very low bandwidth connection and just using the mobile version of the site is sufficient?  Currently I'm using Vista and Firefox 3.5 List of PDOStatement::bindParam data_type parameters Toast message with Chinese characters, is it a virus? I recently received some updates today from the Play Store. Every so often a pop notification, one of those bubble ones at the bottom of the screen with Chinese characters.  The most recent update I've noticed is the ES File Explorer. I wouldn't mind, but my device is rooted and so I am at risk. I have a screenshot of the notification.  My device is the Samsung Galaxy Tab A 9.7 and I have stock ROM installed.    What my question(s) are: Do I have a virus (it's not being picked up by Avast) and if I do, how do I remove it?