title: Connection refused error in PHP
body: <blockquote>
    <p>[06-Nov-2013 17:57:32] PHP Warning:  socket_connect() [function.socket-connect]: unable to
    connect [111]: Connection refused in
    /home2/whoop/public_html/phptesting/main.php on line 43</p>
  </blockquote>
  
  <p>I keep getting this error. This is a snippet of code in my main.php</p>
  
  <pre><code>&lt;?php
  
  $host = '76.72.172.166';
  $port = 25608;
  
  $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); //Create the socket
  $connected = socket_connect($socket, $host, $port);//Try and connect
  ?&gt;
  </code></pre>
  
  <p>I am trying to setup a minecraft player list this is what im using
  <a href="http://forums.bukkit.org/threads/web-constantly-updated-website-widgets.148592/" rel="noreferrer">http://forums.bukkit.org/threads/web-constantly-updated-website-widgets.148592/</a></p>