title: How do I communicate to a LAMP's network from its own hosted website?
body: <p>Given two servers A and B, where A is exposed to the internet via a public URL, and B is just on the same network as the A; how do I make server A send actions to B?</p>
  <p>One very simple example is to have A waking B.
  Right now, I have a basic HTML page with a button that fires an AJAX request to a PHP file that has <code>shell_exec('wakeonlan ...')</code>, and another AJAX-to-PHP linked to a <code>div</code> that updates every 5 seconds to tell me if server B is On or Off.<br />
  I'm going a bit blind here since I'm not being able to find information on this kind of setup, and obviously I'd like to extend my functionality beyond a simple Wake-on-lan.</p>
  <p>Is this possible with a LAMP server, or do I need something more complex?</p>