Ubuntu – open port on ubuntu in azure

azureUbuntu

I have created an ubuntu image in windows azure vm. I am trying to open port 7171 to the outside world. how can I do it?

I have tried issue the iptables command but it did not work, not sure if I did not use it correctly or there is azure level setting to set?

EDIT: maybe it is opened only on localhost and not to the world? how can I verify that?

Best Answer

You'll need to add it as an endpoint instead. From the Windows Azure preview portal, select Virtual Machines -> Your virtual machine. Then click the endpoints tab and finally New. You can see there that only SSH port is open by default.

Related Topic