Deploying Socket.io on a windows server


I have a basic chat socket.io node.js application working on the localhost of a Windows server running Windows 7.

Node and Socket.io installed without any issue and when I run my application through RDC to the windows server, the socket works perfectly.

What I'm struggling with is how i access the socket e.g. "socket.io/socket.io.js" externally.

I would have assumed it would be rather than "localhost:8000/socket.io/socket.io.js" it owuld be "{server_ip}:8000/socket.io/socket.io.js" however this does work.

I saw some discussion about iisnode, but it seems that sockets arent supported yet with that implementation.

Any suggestions?


You can use socket.io with iisnode, however you will not be able to use the websockets transport since IIS 7 does not support websockets. You must explicitly configure your iisnode-hosted socket.io server to use the xhr-polling transport instead.


It turned out to be a firewall issue that was blocking access to that port which my hosting company managed to resolve for me so I'm using socket.io in the normal manner through a node command prompt.

Thanks for the advice, I did try Iisnode and like you said found that sockets weren't supported.


  • Geting the first image url from a post?
  • Office.js mail object properties missing in TypeScript
  • JQuery Validate plugin submitting when it shouldn't
  • Finding all XML nodes between each two processing instructions
  • How to resolve authentication error in npm install?
  • Can someone explain how Yii minimizing assets is supposed to work on Heroku?
  • programatically send a form with POST
  • Misplaced CAGradientLayer on iPhone 6s
  • Making Django.contrib.auth store plain-text password
  • Run git bash script in Windows 7/64bit
  • didSelectItemAtIndexPath of UICollectionView inside of a UIScrollView is not getting called
  • SpringBoot don't replacen System variable {user.home} in Spring Tool Suite Version: 3.8.4.RELEA
  • MFMailComposer send email without presenting view
  • Failed to resolve: firebase-auth-15.0.0 [closed]
  • Auto send email based on the time and email address in database
  • How can I filter an array of dictionaries in 'updateSearchResultsForSearchController' to s
  • Admob in ListView not clickable
  • Unable to start a WebView from an AsyncTask
  • C# code can't “see” the methods in my C++ dll
  • Splitting ReportLab table across PDF page (side by side)?
  • How to use Typescript with libraries like Ampersand.js that parse configs to build prototypes
  • JavaMail connection problems [duplicate]
  • How to use AJAX to upload large CSV file? [closed]
  • Excel File upload in asp.net using SqlBulkCopy
  • Getting the type of a “Type” in C# reflection
  • All Event listing on specified date in Google Calender api (V3) in java?
  • Find angle of point on circle
  • How to run chrome.tabs.insertCSS from the background page on each page?
  • Creating 2d platforms using JavaScript
  • how to read to huge file into buffer
  • How to write seo friendly url's using htaccess?
  • VS2010 RDLC C#. How can I set a LocalReport object to a ReportViewer?
  • Is there a better way for handling SpatialPolygons that cross the antimeridian (date line)?
  • Using redis as an LRU cache for postgres
  • How to handle div that is created dynamically in a table
  • Google App Engine backend servlet not responding
  • How to check if object is null in Java?