Answer the question
In order to leave comments, you need to log in
Why is the program not visible from the outside?
Good afternoon, I wrote a program, uploaded it to the server, OpenJRE 11 is running there.
My program is a simple web socket server.
I run the program on the server, I try to connect to it from the outside, as if there is no access to the program ...
Here is the code that starts the server itself:
WebSocketServer webSocketServer = new WSServer(
new InetSocketAddress(Settings.WS_HOST_VALUE, Settings.WS_PORT_VALUE)
);
webSocketServer.run();
netstat -ntlp | grep LISTEN
tcp 0 0 (мой ip):8887 0.0.0.0:* LISTEN 20355/java
iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question