Access 192.168....:8080 and app android is not working. update java

hello everyone… i need help accessing my openhab from another device… so far everything worked ok… today i ran influxdb and grafana… everything works as it should but directly on my debian… (by the way i updated Azul JDKs Java) this is the only change so far… I don’t know if it has anything to do with this… but after these changes remote access from other computer/browser 192.168…:8080 stopped working, same it’s on android app… can’t access openhab. the only link that works is myopenhab.org
can anyone direct me on how to solve this?.. I can’t control my home through applications and browsers at home…

JAVA Version

openjdk version "11.0.18" 2023-01-17 LTS
OpenJDK Runtime Environment Zulu11.62+17-CA (build 11.0.18+10-LTS)
OpenJDK 64-Bit Server VM Zulu11.62+17-CA (build 11.0.18+10-LTS, mixed mode)

STATUS:

● openhab.service - openHAB - empowering the smart home
     Loaded: loaded (/lib/systemd/system/openhab.service; disabled; vendor pres>
     Active: active (running) since Thu 2023-01-26 20:08:59 CET; 26min ago
       Docs: https://www.openhab.org/docs/
             https://community.openhab.org
   Main PID: 2433 (java)
      Tasks: 207 (limit: 4573)
     Memory: 674.7M
        CPU: 4min 14.684s
     CGroup: /system.slice/openhab.service
             └─2433 /usr/bin/java -XX:-UsePerfData -Dopenhab.home=/usr/share/op>

sty 26 20:08:59 debian systemd[1]: Started openHAB - empowering the smart home.
lines 1-13/13 (END)...skipping...
● openhab.service - openHAB - empowering the smart home
     Loaded: loaded (/lib/systemd/system/openhab.service; disabled; vendor preset: enabled)
     Active: active (running) since Thu 2023-01-26 20:08:59 CET; 26min ago
       Docs: https://www.openhab.org/docs/
             https://community.openhab.org
   Main PID: 2433 (java)
      Tasks: 207 (limit: 4573)
     Memory: 674.7M
        CPU: 4min 14.684s
     CGroup: /system.slice/openhab.service
             └─2433 /usr/bin/java -XX:-UsePerfData -Dopenhab.home=/usr/share/openhab -Dopenhab.conf=/etc/openhab -Dopenhab.runtime=/usr/share/openhab/runtime -Dopenhab.userdata=/var/lib/openhab -Dopenhab.logdir=/var/>

sty 26 20:08:59 debian systemd[1]: Started openHAB - empowering the smart home.

As you are able to login via ssh I assume that you know which name/IP to use in the browser. First thought was that the OH server IP address may have changed in your network.

Login to vi ssh and run

sudo netstat -tulpn | grep java

This will show all the listening ports and used interfaces that are related to the java process.
It should look similar to

netstat -tulpn | grep java
tcp6       0      0 :::8080                 :::*                    LISTEN      920/java            
tcp6       0      0 :::8443                 :::*                    LISTEN      920/java            
tcp6       0      0 :::8101                 :::*                    LISTEN      920/java            
tcp6       0      0 127.0.0.1:40645         :::*                    LISTEN      920/java            
tcp6       0      0 :::5007                 :::*                    LISTEN      920/java            
udp6       0      0 :::5683                 :::*                                920/java            
udp6       0      0 192.168.0.40:48180      :::*                                920/java            
udp6       0      0 :::67                   :::*                                920/java            
udp6       0      0 :::5353                 :::*                                920/java            
udp6       0      0 :::48942                :::*                                920/java            
udp6       0      0 :::1900                 :::*                                920/java

How does it look in your case ? In case you use port 8080 then especially what is the output for that port.
Is a network interface or the local loopback interface related to that port ?

Unfortunately, I can’t figure it out myself…

root@debian:/home/marcin# sudo netstat -tulpn | grep java
tcp6       0      0 127.0.0.1:41737         :::*                    LISTEN      2433/java           
tcp6       0      0 :::5007                 :::*                    LISTEN      2433/java           
tcp6       0      0 :::8080                 :::*                    LISTEN      2433/java           
tcp6       0      0 :::8443                 :::*                    LISTEN      2433/java           
tcp6       0      0 127.0.0.1:8101          :::*                    LISTEN      2433/java           
udp6       0      0 192.168.18.194:54082    :::*                                2433/java           
udp6       0      0 :::5353                 :::*                                2433/java           
udp6       0      0 :::5353                 :::*                                2433/java           
udp6       0      0 :::5353                 :::*                                2433/java           
udp6       0      0 :::5353                 :::*                                2433/java           
udp6       0      0 :::1900                 :::*                                2433/java           
udp6       0      0 :::59525                :::*                                2433/java           
udp6       0      0 :::55621                :::*                                2433/java     

Should be fine. Port 8080 ( should be http port ) and port 8443 ( should be https port ) are listening on tcp6 network traffic.

what does that exaclty mean ? Do you use a browser on your debian system and you use the hostname to access your openhab instance or do you use IP address ?

I mean is that if I open the site on my intel nuc - debian in the browser I open localhost:8080 and I have access to openhab. Until now, I could enter on my laptop or tablet in the browser
192.168.18.194:8080 and I had access to openhab… I didn’t do anything special, just what I described above, i.e. influxdb installation, grafana and java update… then in the evening I saw that access from other devices is not available… “ERR_CONNECTION_TIMED_OUT”

In the android application it is the same, access to openhab does not work … “HTTP 404”

That are two different things.
ERR_CONNECTION_TIMED_OUT means that the host is not reachable or blocked by a firewall.
HTTP code 404 means that the host is reachable but the page it is trying to address/download is not there.

Is there any error message in the /var/log/openhab/openhab.log file ?

2023-01-26 12:22:48.578 [ERROR] [.client.write.events.WriteErrorEvent] - The error occurred during writing of data
2023-01-27 18:03:43.391 [WARN ] [rketplace.MarketplaceBundleInstaller] - Failed reinstalling add-on from cache
2023-01-27 20:54:25.188 [WARN ] [.transport.servlet.ServletController] - Can't find the request for http://localhost:8080/rest/'s Observer 
2023-01-27 20:55:18.290 [WARN ] [e.internal.SseItemStatesEventBuilder] - Attempting to send a state update of an item which doesn't exist: undefined
2023-01-27 20:55:19.827 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception: 
java.lang.NullPointerException: null

	at org.freedesktop.dbus.errors.Error.getException(Error.java:157) ~[?:?]
	at org.freedesktop.dbus.errors.Error.throwException(Error.java:187) ~[?:?]

2023-01-26 15:29:27.874 [ERROR] [.client.write.events.WriteErrorEvent] - The error occurred during writing of data
at io.reactivex.internal.operators.maybe.MaybeOnErrorNext.subscribeActual(MaybeOnErrorNext.java:46) ~[?:?]
at io.reactivex.internal.operators.maybe.MaybeOnErrorNext.subscribeActual(MaybeOnErrorNext.java:46) ~[?:?]
at io.reactivex.internal.operators.maybe.MaybeOnErrorNext.subscribeActual(MaybeOnErrorNext.java:46) [bundleFile:?]

a lot of it:

2023-01-26 12:39:18.578 [ERROR] [.client.write.events.WriteErrorEvent] - The error occurred during writing of data
at io.reactivex.internal.operators.maybe.MaybeOnErrorNext.subscribeActual(MaybeOnErrorNext.java:46) ~[?:?]
at io.reactivex.internal.operators.maybe.MaybeOnErrorNext.subscribeActual(MaybeOnErrorNext.java:46) ~[?:?]
at io.reactivex.internal.operators.maybe.MaybeOnErrorNext.subscribeActual(MaybeOnErrorNext.java:46) [bundleFile:?]

I managed to solve this problem some time ago… forgot to write about it.
When creating the samba server I wanted to add a port to the firewall… and it turned out that all ports were removed… along with openhab… I can’t explain it rationally but it seems to be some problem with influxdb because after its installation it happened and only this port was in the firewall…
finally i added the openhab port to the firewall and everything started working.
Regards