Skip to content

Support online port checkers #2160

@Measurity

Description

@Measurity

Describe the issue

Users want to verify they port forwarded correctly by using port checkers. Add a view to the launcher for users to test a port is open.

After implementation, verify by using some port checkers like:

For port checkers to work, use your public IP: https://ipv4.icanhazip.com/

Proof of concept

Following code should show Open status in port checkers for port 11000 UDP.

using UdpClient client = new(new IPEndPoint(IPAddress.Any, 11000));
Console.WriteLine("Ready to receive stuff!");
while (true)
{
    var result = await client.ReceiveAsync();
    Console.WriteLine($"{result.RemoteEndPoint} - {result.Buffer.Length} bytes: {BitConverter.ToString(result.Buffer).Replace('-', '\0')}");
    await client.SendAsync(result.Buffer, result.Buffer.Length, result.RemoteEndPoint);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: setupRelated to installing, configuring or how compatible Nitrox is with other toolsComplexity: easySuitable for contributors new to Nitrox

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions