Problem scenario
You have an existing GitLab set up on a Linux server. You have access to the back-end. You want to find the port number to connect to. How do you do this?
Solution
First find the external IP address (e.g., curl icanhazip
)
Second, install nmap (e.g., sudo yum -y install nmap
or sudo apt-get -y install nmap
).
Three run this command (but replace x.x.x.x with the IP address found in the first step above):nmap -Pn x.x.x.x | grep open