title: php fsockopen() cannot make connection
body: <p>I have a problem about fsockopen().</p>
  
  <p>when i write code from <a href="http://tokudu.com/2010/how-to-implement-push-notifications-for-android" rel="nofollow">http://tokudu.com/2010/how-to-implement-push-notifications-for-android</a> it doesn't work, and i get:</p>
  
  <pre><code>Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:port
  (No connection could be made because the target machine actively refused it. )
  in C:\xampp\htdocs\PhpMQTTClient-master\SAM\MQTT\sam_mqtt.php on line 641
  Offline
  </code></pre>
  
  <p>I have try <a href="http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/ce22ef1c-72ac-47da-afd7-5ec7a5ffd6bb/" rel="nofollow">this</a>, but it cannot solve my problem.<br>
  Can anybody help me solve this problem?</p>