lidgren / lidgren-network-gen3

Lidgren Network Library
https://groups.google.com/forum/#!forum/lidgren-network-gen3
MIT License
1.19k stars 331 forks source link

The examples client gives error when trying to connect to server form second VS #152

Open meiry opened 3 years ago

meiry commented 3 years ago

Hey

i couldn't start the client in any of the examples in the Samples\LibraryTestSamples , the server is running fine But when i start the client from the second Visual Studio what im doing is : example : lidgren-network-gen3-master\Samples\LibraryTestSamples\EncryptionSample Server starting from visual studio 1 < -- working Client starting from visual studio 2 <-- not working gives the error below Im keep getting this error :

Socket bound to 0.0.0.0:59055: True
Network thread started
[NetConnection to [::1]:14242] (InitiatedConnect) user called connect
Failed to send packet: System.Net.Sockets.SocketException (0x80004005): An address incompatible with the requested protocol was used
   at System.Net.Sockets.Socket.SendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP)
   at Lidgren.Network.NetPeer.ActuallySendPacket(Byte[] data, Int32 numBytes, IPEndPoint target, Boolean& connectionReset) in C:\Dev\my\networking\rudp\lidgren-network-gen3-master\Lidgren.Network\NetPeer.LatencySimulation.cs:line 164
Failed to send packet: System.Net.Sockets.SocketException (0x80004005): An address incompatible with the requested protocol was used
   at System.Net.Sockets.Socket.SendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP)
   at Lidgren.Network.NetPeer.ActuallySendPacket(Byte[] data, Int32 numBytes, IPEndPoint target, Boolean& connectionReset) in C:\Dev\my\networking\rudp\lidgren-network-gen3-master\Lidgren.Network\NetPeer.LatencySimulation.cs:line 164
Resending Connect...
Failed to send packet: System.Net.Sockets.SocketException (0x80004005): An address incompatible with the requested protocol was used
   at System.Net.Sockets.Socket.SendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP)
   at Lidgren.Network.NetPeer.ActuallySendPacket(Byte[] data, Int32 numBytes, IPEndPoint target, Boolean& connectionReset) in C:\Dev\my\networking\rudp\lidgren-network-gen3-master\Lidgren.Network\NetPeer.LatencySimulation.cs:line 164
Resending Connect...
Failed to send packet: System.Net.Sockets.SocketException (0x80004005): An address incompatible with the requested protocol was used
   at System.Net.Sockets.Socket.SendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP)
   at Lidgren.Network.NetPeer.ActuallySendPacket(Byte[] data, Int32 numBytes, IPEndPoint target, Boolean& connectionReset) in C:\Dev\my\networking\rudp\lidgren-network-gen3-master\Lidgren.Network\NetPeer.LatencySimulation.cs:line 164
Resending Connect...
Failed to send packet: System.Net.Sockets.SocketException (0x80004005): An address incompatible with the requested protocol was used
   at System.Net.Sockets.Socket.SendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP)
   at Lidgren.Network.NetPeer.ActuallySendPacket(Byte[] data, Int32 numBytes, IPEndPoint target, Boolean& connectionReset) in C:\Dev\my\networking\rudp\lidgren-network-gen3-master\Lidgren.Network\NetPeer.LatencySimulation.cs:line 164
Resending Connect...
Failed to send packet: System.Net.Sockets.SocketException (0x80004005): An address incompatible with the requested protocol was used
   at System.Net.Sockets.Socket.SendTo(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint remoteEP)
   at Lidgren.Network.NetPeer.ActuallySendPacket(Byte[] data, Int32 numBytes, IPEndPoint target, Boolean& connectionReset) in C:\Dev\my\networking\rudp\lidgren-network-gen3-master\Lidgren.Network\NetPeer.LatencySimulation.cs:line 164
[NetConnection to [::1]:14242] (Disconnected) Failed to establish connection - no response from remote host