Using Socket.io, AngularJS and Express, client listening on different port than which the server is running at <p>I was trying to implement a chat application with authentication. I followed <a href="http://www.htmlxprs.com/post/6/creating-a-realtime-image-sharing-app-with-ionic-and-socketio-tutorial" rel="nofollow">this tutorial</a> to make the chat application which uses Socket.io.</p> <p>When I used this tutorial the server is listening at port 8000 whereas the client is running at port 8100. The Socket URL is at 8000 and the chat application is working perfectly. However when I try to use methods of Express such as <code>app.get()</code>, I cant seem to make it work. I think the cause is that the port of the local host is 8100 and I am listening on 8000. I am using <code>app.get()</code> and AngualrJS to authenticate using PassportJS. Please can someone help me out as I have been stuck on this for a while. Thanks and I would really appreciate any help. Maybe I am thinking about this the wrong way.</p>