Share via

accessing VM through IP

Mats Anders Soot Larsen 21 Reputation points
2022-04-07T14:31:39.177+00:00

Hi, I've set up an azure ubuntu 20.04 VM, installed docker, configured docker-container, and installed and configured gitlab in one container. I get the go ahead that the webserive is up and running.

However, when I go to my browser, and type in my VM's public IP, I get a connection timed out answer, every time, and I've checked with docker ps that the service is up and running and have currently been running for some 5 hours. I have also tried curl -v <ip-adress> and it just spins. how do I go about this?
I'd like to be able to connect to the vm through browser so I can get on with my gitlab.

thanks for all and any help

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

0 comments No comments

Answer accepted by question author

Ronen Ariely 15,221 Reputation points
2022-04-07T14:50:35.3+00:00

If you want to connect from outside the machine then you need to open the firewall of the machine and the firewall of the Azure vNet of the machine

To open the Azure vNet, (1) navigate to your machine in the Azure portal, (2) Select the VM, (3) On the left menu click on networking

190998-image.png

Add Inbound port rules to allow your IP to connect to the VM

And don't forget to configure the machine firewall as well (configuration depend on the firewall you use)

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.