node links how will give in the server not localhost (wamp / xampp)


I'm new to socket session but I learned how it will works in wamp/xampp localhost. But when I move to server that is hosting. it will not work.

<script src="http://localhost:3000/"></script>

Above this work in wamp/xampp. but not found in hosting server. What should I give on src. My hosting is be like: and its port is 8803 or and its port is 8803.

I have tried the ways are to be include as like

<script src="/"></script>
<script src=""></script>
<script src=""></script>

My server side code is

var express = require('express');
var app = express();
var socket = require('');
var server = require('http').createServer(app);
var io = socket.listen(server);
var async = require('async');
var mysql= require('mysql');
var pool  = mysql.createPool({
   host     : 'XXXXX',
   user     : 'XXXXX',
   password : 'XXXX',

 var chatserver=require('./chatserver.js');
 var chatpage=io.of('/as/chatRoom').authorization(function (handshakeData, callback) {
 console.dir(handshakeData); = '/welcome/chatRoom';
 callback(null, true);
 }).on('connection', function (socket) {

On the server side of index.js of node you will need to require io, on http server

app = require('express')(),
http = require('http').Server(app),
io = require('')(http);`

I am unsing handlebars as my templating system so, o i go on that. On your home template file you will add

var socket = io.connect('');
   socket.on('connect', function(){
       socket.emit('authenticate', {data: "token"});
       socket.on('error', function(err){ alert(err);
   socket.on('unauthorized', function(err){
       console.log("There was an error with the authentication:", err.message);
    socket.on('disconnected', function() { alert('Disconnected') });

That works for me on live server.