Skip to content

Connecting to POP3 server using IPv6 fails #90

@microlite

Description

@microlite

If you try and connect to a POP3 server using IPv6 you get the following error:
"A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using sendto) no address was supplied."

I managed to make it work by changing the constructor of the TcpClient as follows:
TcpClient clientSocket = new TcpClient(AddressFamily.InterNetworkV6);

The above modification works with both IPv4 and IPv6 addresses but I'm not sure if its the best approach.

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