How to fix this hostName assign issue below?

server.listen(app.get('port'),"123.xxx.xxx.xxx");//this is my ip ,not ok 
//server.listen(app.get('port'),"127.0.0.1");//ok ,can run in webbrowser   
             
console.log("Express server listening on port " + app.get('port'));
console.log(server.address());


events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: listen EADDRNOTAVAIL
    at errnoException (net.js:904:11)
    at Server._listen2 (net.js:1023:19)
    at listen (net.js:1064:10)
    at net.js:1146:9
    at dns.js:72:18
    at process._tickCallback (node.js:419:13)
    at Function.Module.runMain (module.js:499:11)
    at startup (node.js:119:16)
    at node.js:906:3 

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/bec3a3fc-1624-4236-9008-12410fbf8f6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to