title: Connecting to remote golang server
body: <p>I've been trying for what feels like days to remotely connect to a sockjs-go (<a href="https://github.com/igm/sockjs-go" rel="nofollow">https://github.com/igm/sockjs-go</a>) server application I've written.  I'm developing locally on Windows, and everything works fine.  When I try running on a remote linux server (after building on the linux box, obviously), I am never able to connect to the sockjs server.</p>
  
  <ul>
  <li><p>I've tried running the example echoserver web example from the sockjs-go repository on the remote machine, and I cannot connect to it either.</p></li>
  <li><p>I made sure to change the sockjs client IP from my local machine to the remote machine.</p></li>
  <li><p>I have the right public IP address and can view a static web page served by lighttpd.</p></li>
  </ul>
  
  <p>I've tried searching on google for anything golang-specific, but have found nothing.  Any suggestions would be great.</p>
  
  <p><strong>update</strong></p>
  
  <p>I am using the echo test code verbatim given here:  <a href="https://github.com/igm/sockjs-go/tree/v2/examples/webecho" rel="nofollow">https://github.com/igm/sockjs-go/tree/v2/examples/webecho</a></p>
  
  <p>As far as I can tell, the linux server isn't filtering.  Port 8080 is closed before running webecho, and is open after starting webecho.</p>
  
  <p>I have also tried <a href="https://coderwall.com/p/wohavg/creating-a-simple-tcp-server-in-go" rel="nofollow">https://coderwall.com/p/wohavg/creating-a-simple-tcp-server-in-go</a> , which I can connect to locally but not remotely.  Any ideas why I cannot connect to go programs remotely, but other programs have no problems connecting?</p>