http server listening in old port

First i installed the node js with webmatrix and ran a sample node js app. the app was assigned a random port. http://localhost:62369/. After that i installed the express module. As said in their doc. i wrote,

var app = express();
app.get('/',function (req, res) {
    res.send('hello world!!');
})

app.listen(3000);

Then i restarted the server. The launched browser was still pointing to http://localhost:62369/ instead of port 3000. Moreover http://localhost:3000/ was not working.

make sure that you've saved your code in your file (open it with another editor, maybe something's wrong with your editor), close the command line window and open it again. try to run server. I'm sure the problem is not because of node or express. Try to check everything again.

And also run your server with command line:
cd path/folder
node myFile
I don't know what are you using to run server, but if it's something with UI (in comments you mentioned a click) it can cache your code or something like that. So it's safer to run with commend line.

I suggest you to run this code so you can see if you have any problem on saving the code with your IDE:

var app = express(),
    port = 4555;
app.get('/',function (req, res) {
    res.send('hello world!!');
})
console.log("Server is running on " + port);
app.listen(port);

After that, you need to change the port variable only. It's helpful if you comment what you see after running this code on the console.