问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
