google cloud platform – How to change listening port from localhost on GPC Debian Linux VM

test@flink-master:~$ netstat -an | grep "LISTEN "
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN     
tcp6       0      0 127.0.0.1:33247         :::*                    LISTEN     
tcp6       0      0 127.0.0.1:6123          :::*                    LISTEN     
tcp6       0      0 127.0.0.1:8081          :::*                    LISTEN     
tcp6       0      0 127.0.0.1:34869         :::*                    LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN     
tcp6       0      0 ::1:25                  :::*                    LISTEN   

How can I change the port from 127.0.0.1:8081 to 0.0.0.0:8081?

uname -a
Linux flink-master 5.10.0-22-cloud-amd64 #1 SMP Debian 5.10.178-3 (2023-04-22) x86_64 GNU/Linux

Read more here: Source link