dqtuan200
Intern
Intern
  • UID9616
  • Fans0
  • Follows0
  • Posts1
Reads:447Replies:2

[products]Can not use port 3000 to run nodejs

Created#
More Posted time:Jun 10, 2020 3:29 AM
Hi, I found problem on run nodejs (I use port 3000 example) but it can only working in  url 127.0.0.1:3000 but not working in myip:3000
my nodejs code is simple:
================================================

const express = require('express')
const app = express()
const port = 3003
app.get('/', (req, res) => res.send('Hello World!'))
app.listen(port,'0.0.0.0',()=>{
      console.log("server is listening on "+port+" port");
})
================================================

I also open port in Security Group Rules
Please HELP me. Thanks

Latest likes:

NishantRajNishan... CloudtestCloudt... DebaDeba

kokleong98
Intern
Intern
  • UID8954
  • Fans0
  • Follows0
  • Posts17
1st Reply#
Posted time:Jun 10, 2020 9:40 AM
High level it looks ok to me. Maybe you should get help from support.

Cloudy
Administrator
Administrator
  • UID63
  • Fans20
  • Follows1
  • Posts148
2nd Reply#
Posted time:Jun 10, 2020 17:24 PM
Dear dqtuan200,
Please create a ticket in your Alibaba Cloud console and our team will help you with that. You can refer to the below link for the instruction of creating ticket: https://www.alibabacloud.com/help/doc-detail/47605.htm#ticket
Thank you.
Guest