Skip to content

"Socket Timeout! Is the server offline?" when I try to connect 1.16.5 server #7

@themixray

Description

@themixray

code

package com.themixray;

import java.util.logging.Logger;

public class Main {

    public static void main(String[] args) {
        Logger log = Logger.getLogger("LOG");
        long st = System.currentTimeMillis();
        MCQuery mcQuery = new MCQuery("0.tcp.ngrok.io", 12601);
        QueryResponse response = mcQuery.basicStat();
        float ping = (float)System.currentTimeMillis()-st;
        log.info("ping "+Float.toString(ping));
    }
}

project tree
tree

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions