node - Alibaba ubuntu server, the external network cannot access through IP?
巴扎黑
巴扎黑 2017-05-16 13:18:01
0
2
704

Written a demo (the hello world part of the node official website), and it runs without problems on the server. Curl localhost can also return, but it cannot be accessed from the external network

const http = require('http')

http.createServer(function(req,res){
        res.writeHead(200,{'Content-Type':'text/plain'})
        res.end('hello world')
}).listen(8082)


console.log('server running on http://localhost:8082')

Supplement: The firewall is not turned on

巴扎黑
巴扎黑

reply all(2)
曾经蜡笔没有小新

Have the firewall and security group released the ports?

PHPzhong

Do you need to open the corresponding port for iptables? I guessed

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template