change the hostname for a given service

I have 2 services running on my server. The first python service is working as expected.

# netstat -tulpn  | grep LISTEN | grep 8888
tcp        0      0 0.0.0.0:8888            0.0.0.0:*               LISTEN      1057/python

The second node service has started but not accessible from browser at http://somesite.com:5601

# netstat -tulpn  | grep LISTEN | grep 5601
tcp        0      0 127.0.0.1:5601          0.0.0.0:*               LISTEN      4740/node

I guess if I can change 127.0.0.1 to 0.0.0.0 just like the first command then it should work. But I am not sure ho to change the host only for the second service. I started the second service using the command

sudo systemctl start kibana.service

I am using ARM processor if that matters.


Kibana has one configuration file in the conf/ folder named kibana.yml. You will find one keyword named server. host set your IP, and your Kibana will run on that IP address.

[root@localhost config]# vim kibana.yml

# Kibana is served by a back end server. This setting specifies the port to use.
#server.port: 5601
# Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.
# The default is 'localhost', which usually means remote machines will not be able to connect.
# To allow connections from remote users, set this parameter to a non-loopback address.
server.host: "192.168.99.102"

https://www.edureka.co/community/72782/how-to-change-hostname-in-kibana#:~:text=Kibana%20has%20one%20configuration%20file,run%20on%20that%20IP%20address.