Skip to content

DCC Transfert problem #2

@GoogleCodeExporter

Description

@GoogleCodeExporter
Since i'm doing some test on a lan server, i've got an 
System.Net.Sockets.SocketException when it tries to establish the connection 
with the other client : An address incompatible with the requested protocol was 
used

This could be corrected by changing DCCBase.cs line 110
socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, 
ProtocolType.Tcp);
by this
socket = new Socket(RemoteEndPoint.AddressFamily, SocketType.Stream, 
ProtocolType.Tcp);

But with this change it's not working because the methode GetIp() always return 
the first IpAdress (in my case IPV6) and it is not supported.
I've not be able to pinpoint the real problem but if GetIp() return an IPV4 
(the las in the list of 4) it's working.

Original issue reported on code.google.com by zergman....@gmail.com on 7 May 2014 at 1:33

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions