Cannot access Kibana from remote PC

Hi, I am new in ES. I get a problem in Kibana. My remote PC cannot access to Kibana. Can anyone please help?

Kibana.yml
server.port: 5601
server.host: "0.0.0.0"
elasticsearch.hosts: ["http://localhost:9200"]

It work when I use localhost:
wget -O - http://127.0.0.1:5601

However, error occur when I run:
wget -O - http://[IP address]:5601
Connecting to [IP address]:5601... failed: Connection refused.

I tried to run netstat:
[root@localhost config]# netstat -plant | grep 5601
tcp 0 0 127.0.0.1:5601 0.0.0.0:* LISTEN 16848/./bin/../node

Welcome! :smiley:

Does the Kibana host have a firewall in place?

yes, it have firewall. I have set the rule in iptables.

Even I typed wget in the host machine also don't work.

wget -O - http://[IP address]:5601
Connecting to [IP address]:5601... failed: Connection refused.

Are you sure Kibana is running, what do the logs show?

Yes, I am sure the Kibana is running. When i type wget by localhost is work.
wget -O -http://127.0.0.1:5601

Below is the Kibana's logs:

[root@localhost kibana-7.7.0-linux-x86_64]# ./bin/kibana --allow-root
log [02:01:11.468] [warning][plugins-discovery] Expect plugin id in camelCase, but found: apm_oss
log [02:01:11.496] [warning][plugins-discovery] Expect plugin id in camelCase, but found: file_upload
log [02:01:11.501] [warning][plugins-discovery] Expect plugin id in camelCase, but found: triggers_actions_ui
log [02:02:12.809] [info][plugins-system] Setting up [76] plugins: [siem,taskManager,encryptedSavedObjects,licensing,eventLog,code,usageCollection,metrics,ossTelemetry,lens,telemetryCollectionManager,telemetry,telemetryCollectionXpack,timelion,features,visTypeVega,kibanaLegacy,devTools,apm_oss,translations,observability,rollup,statusPage,uiActions,charts,share,savedObjects,newsfeed,kibanaUtils,kibanaReact,inspector,maps,embeddable,drilldowns,advancedUiActions,esUiShared,discover,bfetch,expressions,visualizations,data,home,cloud,console,consoleExtensions,searchprofiler,painlessLab,canvas,management,upgradeAssistant,security,snapshotRestore,transform,licenseManagement,indexManagement,remoteClusters,watcher,reporting,advancedSettings,spaces,actions,case,alerting,apm,alertingBuiltins,triggers_actions_ui,uptime,ml,telemetryManagementSection,file_upload,dataEnhanced,infra,monitoring,navigation,graph,dashboard]
log [02:02:12.815] [warning][config][encryptedSavedObjects][plugins] Generating a random key for xpack.encryptedSavedObjects.encryptionKey. To be able to decrypt encrypted saved objects attributes after restart, please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml
log [02:02:13.435] [warning][config][plugins][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml
log [02:02:13.435] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended.
log [02:02:13.534] [warning][actions][actions][plugins] APIs are disabled due to the Encrypted Saved Objects plugin using an ephemeral encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml.
log [02:02:13.569] [warning][alerting][alerting][plugins][plugins] APIs are disabled due to the Encrypted Saved Objects plugin using an ephemeral encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml.
log [02:02:13.815] [info][monitoring][monitoring][plugins] config sourced from: production cluster
log [02:02:13.817] [warning][monitoring][monitoring][plugins] X-Pack Monitoring Cluster Alerts will not be available: undefined
log [02:02:14.129] [info][savedobjects-service] Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations...
log [02:02:14.138] [info][plugins][watcher] Your basic license does not support watcher. Please upgrade your license.
log [02:02:14.140] [info][kibana-monitoring][monitoring][monitoring][plugins] Starting monitoring stats collection
log [02:02:14.174] [info][savedobjects-service] Starting saved objects migrations
log [02:02:14.294] [info][plugins-system] Starting [53] plugins: [siem,taskManager,encryptedSavedObjects,licensing,eventLog,code,usageCollection,metrics,ossTelemetry,lens,telemetryCollectionManager,telemetry,telemetryCollectionXpack,timelion,features,visTypeVega,kibanaLegacy,apm_oss,translations,rollup,share,bfetch,expressions,visualizations,data,home,cloud,console,consoleExtensions,searchprofiler,painlessLab,canvas,upgradeAssistant,security,snapshotRestore,transform,licenseManagement,indexManagement,remoteClusters,watcher,spaces,actions,case,alerting,apm,alertingBuiltins,uptime,ml,file_upload,dataEnhanced,infra,monitoring,graph]
log [02:02:27.499] [info][status][plugin:kibana@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.532] [info][status][plugin:elasticsearch@7.7.0] Status changed from uninitialized to yellow - Waiting for Elasticsearch
log [02:02:27.549] [info][status][plugin:elasticsearch@7.7.0] Status changed from yellow to green - Ready
log [02:02:27.569] [info][status][plugin:xpack_main@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.632] [info][status][plugin:graph@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.638] [info][status][plugin:monitoring@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.649] [info][status][plugin:spaces@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.654] [info][status][plugin:security@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.662] [info][status][plugin:interpreter@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.666] [info][status][plugin:vis_type_vislib@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.670] [info][status][plugin:tilemap@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.674] [info][status][plugin:grokdebugger@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.686] [info][status][plugin:dashboard_mode@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.690] [info][status][plugin:logstash@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.714] [info][status][plugin:beats_management@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.777] [info][status][plugin:apm_oss@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.792] [info][plugins][taskManager][taskManager] TaskManager is identified by the Kibana UUID: 463f0845-4d28-4414-bac1-095501c6d68f
log [02:02:27.796] [info][status][plugin:task_manager@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.834] [info][status][plugin:apm@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.878] [info][status][plugin:maps@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.883] [info][status][plugin:canvas@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.891] [info][status][plugin:index_lifecycle_management@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.926] [info][status][plugin:rollup@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:27.944] [info][status][plugin:encryptedSavedObjects@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:28.093] [info][status][plugin:siem@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:28.098] [info][status][plugin:remoteClusters@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:28.104] [info][status][plugin:cross_cluster_replication@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:28.120] [info][status][plugin:upgrade_assistant@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:28.131] [info][status][plugin:console_legacy@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:28.143] [info][status][plugin:input_control_vis@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:28.152] [info][status][plugin:kibana_react@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:28.156] [info][status][plugin:stack-management@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:28.164] [info][status][plugin:region_map@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:28.205] [info][status][plugin:ui_metric@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:28.209] [info][status][plugin:vis_default_editor@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:28.214] [info][status][plugin:markdown_vis@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:28.227] [info][status][plugin:metric_vis@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:28.231] [info][status][plugin:table_vis@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:28.240] [info][status][plugin:tagcloud@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:28.248] [info][status][plugin:timelion_vis@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:28.260] [info][status][plugin:vis_type_vega@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:28.267] [warning][reporting] Enabling the Chromium sandbox provides an additional layer of protection.
log [02:02:29.335] [warning][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml
log [02:02:29.352] [info][status][plugin:reporting@7.7.0] Status changed from uninitialized to green - Ready
log [02:02:29.461] [info][listening] Server running at http://localhost:5601
log [02:02:31.289] [info][server][Kibana][http] http server running at http://localhost:5601

It should be something wrong in kibana.yml. I updated it and restart the kibana.

It's work now. Thanks!

Great to know..thanks for the update!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.