direct connect refused (linux)

Discussion about the game and its default mods.
Post Reply
jimbo
Posts: 8
Joined: Sun May 06, 2012 1:28 pm

direct connect refused (linux)

Post by jimbo »

Hi,

Can anyone give me any ideas as to why a direct connection is refused? I've set up both devices (desktop & laptop) to use static IP addresses on the LAN.

Am I right in thinking that I don't need port forwarding setup in the router to play on the LAN? Would it also be correct that port forwarding on the router would not affect games played on the LAN?

FWIW: The desktop is running an up-to-date Arch system with OpenRA installed via pacman and the laptop is running an up-to-date Debian Squeeze system with OpenRA installed via the latest DEB from the OpenRA site.

Unlike most Linux users I'm not a networking geek ;-) Despite using it for years.

Cheers,
James.

jimbo
Posts: 8
Joined: Sun May 06, 2012 1:28 pm

Post by jimbo »

Ping succeeds both ways between the laptop and desktop. Here's what telnet'ing from the laptop to a running instance of OpenRA on the desktop shows:

Code: Select all

james@blahblahblah:~$ telnet 192.168.1.2 1234
Trying 192.168.1.2...
Connected to 192.168.1.2.
Escape character is '^]'.
l�HandshakeRequestUHandshake:
        Mods: ra@release-20120315
        Map: 2f069fcc457ae941388db3594932c9a93d59615d

jimbo
Posts: 8
Joined: Sun May 06, 2012 1:28 pm

Post by jimbo »

Code: Select all

Trying 192.168.1.3...
Connected to 192.168.1.3.
Escape character is '^]'.
l�HandshakeRequestUHandshake:
        Mods: ra@release-20120504
        Map: 2f069fcc457ae941388db3594932c9a93d59615d
Hmmm maybe it's the version difference. Will check that now...

jimbo
Posts: 8
Joined: Sun May 06, 2012 1:28 pm

Post by jimbo »

jimbo wrote:

Code: Select all

Trying 192.168.1.3...
Connected to 192.168.1.3.
Escape character is '^]'.
l�HandshakeRequestUHandshake:
        Mods: ra@release-20120504
        Map: 2f069fcc457ae941388db3594932c9a93d59615d
Hmmm maybe it's the version difference. Will check that now...
That is running telnet from the desktop (Arch) connecting to the laptop (Debian stable). ^C^C^C^C^ from telnet on the desktop crashed OpenRA on the laptop.

Code: Select all

Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: count
  at System.Collections.Generic.List`1&#91;System.Byte&#93;.CheckRange &#40;Int32 idx, Int32 count&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at System.Collections.Generic.List`1&#91;System.Byte&#93;.GetRange &#40;Int32 index, Int32 count&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Server.Connection.PopBytes &#40;Int32 n&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Server.Connection.ReadData &#40;OpenRA.Server.Server server&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Server.Server.<Server>m__66 &#40;System.Object _&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
AL lib&#58; ALc.c&#58;1879&#58; exit&#40;&#41;&#58; closing 1 Device
AL lib&#58; ALc.c&#58;1808&#58; alcCloseDevice&#40;&#41;&#58; destroying 1 Context&#40;s&#41;

Unhandled Exception&#58; System.InvalidOperationException&#58; CG Error. See graphics.log for details
  at OpenRA.Renderer.Cg.GraphicsDevice.<CgErrorCallback>m__0 &#40;&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at &#40;wrapper native-to-managed&#41; OpenRA.Renderer.Cg.GraphicsDevice&#58;<CgErrorCallback>m__0 &#40;&#41;
  at &#40;wrapper managed-to-native&#41; Tao.Cg.Cg&#58;cgGetNamedEffectParameter &#40;intptr,string&#41;
  at OpenRA.Renderer.Cg.Shader.SetValue &#40;System.String name, ITexture t&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Graphics.Renderer.SetShaderParams &#40;IShader s, float2 r1, float2 r2, float2 scroll&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Graphics.Renderer.BeginFrame &#40;float2 scroll, Single zoom&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Graphics.Viewport.DrawRegions &#40;OpenRA.Graphics.WorldRenderer wr, IInputHandler inputHandler&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Game.Tick &#40;OpenRA.Network.OrderManager orderManager, OpenRA.Graphics.Viewport viewPort&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Game.Run &#40;&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Program.Run &#40;System.String&#91;&#93; args&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 
  at OpenRA.Program.Main &#40;System.String&#91;&#93; args&#41; &#91;0x00000&#93; in <filename unknown>&#58;0 

jimbo
Posts: 8
Joined: Sun May 06, 2012 1:28 pm

Post by jimbo »

jimbo wrote:

Code: Select all

Trying 192.168.1.3...
Connected to 192.168.1.3.
Escape character is '^&#93;'.
l&#65533;HandshakeRequestUHandshake&#58;
        Mods&#58; ra@release-20120504
        Map&#58; 2f069fcc457ae941388db3594932c9a93d59615d
Hmmm maybe it's the version difference. Will check that now...
Sorry for noise, it was indeed the version difference. The Arch repository may have been a day or two behind and I hadn't noticed (or I've been playing OpenRA for a few more days than I realize).

vidski
Posts: 3
Joined: Thu May 03, 2012 6:09 am

Post by vidski »

Am I right in thinking that I don't need port forwarding setup in the router to play on the LAN? Would it also be correct that port forwarding on the router would not affect games played on the LAN?
This is generally correct provided the two comps you wish to use for direct connect are also on the same subnet. (basically meaning they are both hooked up to the same router)

Having multiple subnets/routers gets slightly more complicated as you must forward ports sequentially from one router to the next. i.e. Lets say I want to open up my server to the general public, and my network setup is:

cablemodem > routerX > routerY > routerZ > server

You cannot just log into routerX and forward the ports directly to your servers LAN IP. The incomming traffic will get cut off at routerY and Z. Therefore, you forward routerX ports to routerY, forward same ports in routerY to routerZ, and then of course from Z to server.

Make sure you open these ports on your server as well if you haven't already done so.
If using linux, iptables is a nifty little terminal app you can use to accomplish this. If using windows, i dunno, google it... lol Im sue there are plenty of freeware GUI apps that will eliminate the need to know anything beyond typing in the port(s) you wish to open.

GL, Hope this helps.. :D

Post Reply