I've been trying to play a game of AI War with one of my friends. We are not on the same network, and I'm currently at college, so I don't have a way to change router settings. So we tried to use Hamachi, which we have used before with other games, to connect. However, if I host and my friend tries to connect, he gets stuck on the "connecting to server" screen forever. If I try to connect I get a really long error message and my game crashes. We tried using the tunngle program I saw some people on here talking about, but the only difference is that we can see each other in the server list instead of having to type the ip directly. However we still get the same problem when we actually try to connect. The really weird error I got says:
-----------------------------------Application_ThreadException-----------------------------------System.ArgumentOutOfRangeException: Index and count must refer to a location within the buffer.
Parameter name: bytes
at System.Text.UTF8Encoding.GetString(Byte[] bytes, Int32 index, Int32 count)
at Lidgren.Network.NetBuffer.ReadString()
at AIWar.NetworkClientWrapper.CheckClient() in C:\vcprojs\AIWar\DX\NetworkClientWrapper.cs:line 191
at AIWar.Game.RunNextCycle(Boolean DoRendering, Boolean DoScrollingAndInput) in C:\vcprojs\AIWar\GameFormParts\GameLoop.cs:line 696
at AIWar.Game.gameLoop() in C:\vcprojs\AIWar\GameFormParts\GameLoop.cs:line 361
at AIWar.Game.GameForm_Load(Object sender, EventArgs e) in C:\vcprojs\AIWar\GameFormParts\Startup.cs:line 287
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I was wondering if anyone knew why I'm getting this error message and if there is any way I can fix it so me and my friend can connect successfully?