-1

I installed Redhat azure VM and I enabled ports 80 and 443. But the ports are not working. I don't know what is the reason. Please anyone help regarding this issue.

  • [Troubleshoot Azure VM connectivity problems](https://learn.microsoft.com/en-us/azure/virtual-network/troubleshoot-vm-connectivity), [Azure linux VM inbound rules not working for custom port](https://serverfault.com/questions/829358/azure-linux-vm-inbound-rules-not-working-for-custom-port) and [Azure inbound TCP port rules don't work](https://learn.microsoft.com/en-us/answers/questions/513619/azure-inbound-tcp-port-rules-don39t-work-with-mino.html) – Ecstasy Jun 27 '22 at 07:48
  • what is the error you are getting? – RahulKumarShaw Jun 27 '22 at 08:12
  • I am searching like this "curl localhost" and get this error "curl: (7) Failed to connect to localhost port 80: Connection refused". if I am searching in chrome I get this error "This site can’t be reached12.36.25.254 refused to connect." – Rajesh Gandhavarapu Jun 27 '22 at 09:37
  • @DeepDave-MT that solution was not workout for me – Rajesh Gandhavarapu Jun 27 '22 at 09:39
  • [Curl : connection refused](https://stackoverflow.com/questions/41027340/curl-connection-refused), [curl Failed to connect to localhost port 80](https://stackoverflow.com/questions/22952676/curl-failed-to-connect-to-localhost-port-80) and [curl: (7) Failed to connect to localhost port 8080 Connection refused](https://askubuntu.com/questions/1215928/curl-7-failed-to-connect-to-localhost-port-8080-connection-refused) – Ecstasy Jun 27 '22 at 09:43
  • @DeepDave-MT Thank you. The above solution also not workout – Rajesh Gandhavarapu Jun 27 '22 at 09:55
  • in azure redhat machines ill get this iisues – Rajesh Gandhavarapu Jun 27 '22 at 10:33

1 Answers1

0

The Error you are getting is more related to require some configurational changes in your local host file.

Solution : You need to add --IPV4 flag option to curl and another things is removing ::1 from /etc/hosts.

For more information and troubleshooting refer this thread

RahulKumarShaw
  • 4,192
  • 2
  • 5
  • 11