Ubuntu VM port is enabled but not working

Gurpal Singh 1 Reputation point
2023-01-09T12:22:02.713+00:00

I added port 448 on VM networking inbound security rules. it is also added on OS level like
ufw allow 448/tcp. it shows

Rules updated  
Rules updated (v6).  

But when i am trying to access on browser it shows ERR_CONNECTION_REFUSED. also not showing in open port list.
list of all opened port on azure side

list of all opened port on ubuntu VM

Also OS level firewall is showing inactive

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,196 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. msrini-MSFT 9,261 Reputation points Microsoft Employee
    2023-01-10T06:36:45.793+00:00

    Hi,

    The flow is as mentioned below:

    1. You will need to allow port 448 on NSG - subnet level/NIC level.
    2. Port 448 needs to be listening on your guest OS.
    3. You need to check if this port is being blocked by IP tables.

    If you have verified the above, you will need to perform a packet capture on your VM and see if you are able to see the packet on the VM. By doing that you can understand if the connection reset is from application or from OS.

    Regards, Karthik Srinivas

    1 person found this answer helpful.

  2. Manu Philip 16,986 Reputation points MVP
    2023-01-09T13:22:08.077+00:00

    As you have confirmed the port is opened, try running an application listening at port 448 and then check out using nmap localhost. See the port is listening and under the list


    --please don't forget to upvote and Accept as answer if the reply is helpful--


  3. msrini-MSFT 9,261 Reputation points Microsoft Employee
    2023-01-10T12:12:55.763+00:00

    Ok. This looks like your application is not listening on the port. Which application are you using ?

    Can you access your application locally?