无法在AWS EC2的公共IP上使用webpackdevserver托pipe反应应用程序

我正在运行AWS EC2上的react应用程序,它通过localhost:3000访问时在本地工作

我想让它公共访问,所以我通过公共ip到以下命令

var webpackDevServer = new WebpackDevServer(bundler, { publicPath: '/', hot: false, quiet: false, noInfo: true, stats: { colors: true } }); webpackDevServer.listen(3000, '18.230.124.435', function () { console.log('Bundling project, please wait...'); }); 

我正在使用gulp来运行任务。

我geting一个错误错误:听EADDRNOTAVAIL 18.230.124.435:3000

我在这里做错了什么?