大网数据广告活动
服务器运维问答

Azure not forwarding port, firewall disabled

· 52CE 我爱测

Context I have an Azure server running a service on port 8000. This works on localhost:8000. I have Azure rules to forward port 8000: And my firewall is disabled: Question I'm serving HTML files over Node.js. They work locally, a…

问题原文

原帖链接 · Randy · CC BY-SA 3.0

Context

I have an Azure server running a service on port 8000.

This works on localhost:8000.

I have Azure rules to forward port 8000:

And my firewall is disabled:


Question

I'm serving HTML files over Node.js. They work locally, and the server reports no errors, but I receive an

ERR_EMPTY_RESPONSE

in chrome. I have tried to run other services, java API's serving json, but nothing works. Other ports, like 8010 or 80 are not functioning eighter.

What can I possibly do to make this port function and enable my webserver?

More advanced azure rule image:

已采纳解答

原帖链接 · Shui shengbao · CC BY-SA 3.0

According to your description, it seems that your service only is listening on 127.0.0.1, so, you only could access the service inside your VM. You could check use following command.

netstat -ant|findstr 8000.

Please ensure your service is listening on 0.0.0.0. or VM's private IP like 10.0.0.4. Maybe you need modify your service configuration.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-11-14)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。