Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GluonFx server socket communication #499

Open
Anton-Bondar opened this issue Jan 4, 2024 · 0 comments
Open

GluonFx server socket communication #499

Anton-Bondar opened this issue Jan 4, 2024 · 0 comments

Comments

@Anton-Bondar
Copy link

Anton-Bondar commented Jan 4, 2024

I have JavaFX application that based on GluonFX framework. It creates simple Server Socket:

public class Application {

private static final int SOCKET_PORT = 40009;

public static void main(String[] args) {
    try {
        try (ServerSocket ss = new ServerSocket()) {
            ss.bind(new InetSocketAddress("localhost", SOCKET_PORT));
            System.out.println("Server started");
            ss.accept();
        }
    } catch (IOException e) {
        System.out.println("Something go wrong");
    }
}

When I run application as java process (for example in intellij idea)

I can ping 40009 port by command:

netstat -vanp tcp | grep 40009

But when I create native runner for this app and run it. This port is free. In this time an app works correctly but port is free. Why port is free for native run ?

P.S. I tried to reproduce following case for Graal VM and it works correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant