Skip to content

Failing to start with ipv6 address #2

@UnknownShadow200

Description

@UnknownShadow200

It gets stuck in 'Resolving external point'. This is due to this line:

IPEndPoint BindIPEndPointCallback( ServicePoint servicePoint, IPEndPoint remoteEndPoint,
    int retryCount ) {
        return new IPEndPoint( InternalIP, 0 );
}

InternalIP is an ipv4 address, so it ends up looping 2,147,483,647 times. However, because I have IPv6, it is using an ipv6 socket to connect to fcraft.net's IP check uri.

The simple fix is to do this instead: https://github.com/123DMWM/ProCraft/blob/b2ed46e61c9d533c421c85ef859cec8a94979f8e/fCraft/System/Server.cs#L1236

To also ensure that the external IP shown is the IPv4 address, you can prefer ipv4 connections with this https://github.com/123DMWM/ProCraft/blob/b2ed46e61c9d533c421c85ef859cec8a94979f8e/fCraft/System/Utils/HttpUtil.cs

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