The online racing simulator
Win8 + local InSim connection
(6 posts, started )
#1 - Tommy
Win8 + local InSim connection
Hi there,

Since getting new machine with Win8 I am struggling with connecting LFS to my new (and old) programs that used the .Net InSim library. The LFS/insim configuration is 99% not the issue - exact same config worked on my previous XP machine (xp was 32bit, w8 is 64b now).

In the new project I have downloaded the latest InSimDotNet nuget package (great work btw ) but still no luck. What I have tried is (in every configuration): enabling every Win8 firewall port related to both programs, running winXP mode and running as admin.

Did any one of you had similar problem and solved it? any help/hint/tip will be very appreciated.

To hype things up: I am working (well trying to...) on a new project called LFSHelper (http://sourceforge.net/projects/lfshelper/) which will in general group every idea I had that might enhance LFS experience using every possible input/output method available without hacking(input: insim, outsim, outgauge. output: controller proxy, keyboard). The project is open source
#2 - amp88
Can you provide any details as to how exactly this isn't working (e.g. steps you're following to try and get it running, relevant log files, error messages etc)?
#3 - Tommy
I do /insim=29999 just after running lfs.

LFS_External throws exception with Message = "The InSim Interface was unable to connect to the remote InSim host." on initialization. No further stacktrace.

InSimDotNet throws exception with more details:

InSimDotNet.InSimException was unhandled
HResult=-2146233088
Message=Could not connect to InSim
Source=InSimDotNet
StackTrace:
w InSimDotNet.InSim.Initialize(InSimSettings settings) w c:\Users\Alex\Documents\Visual Studio 11\Projects\InSimDotNet\InSimDotNet\InSim.cs:wiersz 195
w LfsHelper.Controller.LfsConnection.get_InSim() w D:\Projekty_firmowe\LfsHelper\Controller\LfsConnection.cs:wiersz 56
w LfsHelper.MainWindow.Window_Loaded(Object sender, RoutedEventArgs e) w D:\Projekty_firmowe\LfsHelper\MainWindow.xaml.cs:wiersz 41
w System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
w System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
w System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
w System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
w System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
w System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
w MS.Internal.LoadedOrUnloadedOperation.DoWork()
w System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
w System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
w System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
w System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
w System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
w System.Windows.Interop.HwndTarget.OnResize()
w System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
w System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
w MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
w MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
w System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
w MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
w System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
w MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
InnerException: System.Net.Sockets.SocketException
HResult=-2147467259
Message=Nie można nawiązać połączenia, ponieważ komputer docelowy aktywnie go odmawia 127.0.0.1:29999
Source=System
ErrorCode=10061
NativeErrorCode=10061
StackTrace:
w System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port)
w System.Net.Sockets.Socket.Connect(String host, Int32 port)
w InSimDotNet.TcpSocket.Connect(String host, Int32 port) w c:\Users\Alex\Documents\Visual Studio 11\Projects\InSimDotNet\InSimDotNet\TcpSocket.cs:wiersz 99
w InSimDotNet.InSim.Initialize(InSimSettings settings) w c:\Users\Alex\Documents\Visual Studio 11\Projects\InSimDotNet\InSimDotNet\InSim.cs:wiersz 174
InnerException:


the "Nie można nawiązać połączenia, ponieważ komputer docelowy aktywnie go odmawia 127.0.0.1:29999" means "Cannot connect because the target machine actively refuses it 127.0.0.1:29999" so there is something blocking it still
#4 - Tommy
doing netstat -anb shows clearly that LFS is listening on port 29999 (this port was unused prior starting LFS):

Active Connections

Proto Local Address Foreign Address State
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING
[Skype.exe]
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
RpcSs
[svchost.exe]
TCP 0.0.0.0:443 0.0.0.0:0 LISTENING
[Skype.exe]
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
Can not obtain ownership information
TCP 0.0.0.0:554 0.0.0.0:0 LISTENING
[wmpnetwk.exe]
TCP 0.0.0.0:1025 0.0.0.0:0 LISTENING
[wininit.exe]
TCP 0.0.0.0:1026 0.0.0.0:0 LISTENING
EventLog
[svchost.exe]
TCP 0.0.0.0:1027 0.0.0.0:0 LISTENING
Schedule
[svchost.exe]
TCP 0.0.0.0:1028 0.0.0.0:0 LISTENING
[services.exe]
TCP 0.0.0.0:1029 0.0.0.0:0 LISTENING
[lsass.exe]
TCP 0.0.0.0:2599 0.0.0.0:0 LISTENING
[devenv.exe]
TCP 0.0.0.0:2869 0.0.0.0:0 LISTENING
Can not obtain ownership information
TCP 0.0.0.0:3258 0.0.0.0:0 LISTENING
[devenv.exe]
TCP 0.0.0.0:5357 0.0.0.0:0 LISTENING
Can not obtain ownership information
TCP 0.0.0.0:10243 0.0.0.0:0 LISTENING
Can not obtain ownership information
TCP 0.0.0.0:47087 0.0.0.0:0 LISTENING
[Skype.exe]
TCP 25.135.172.210:139 0.0.0.0:0 LISTENING
Can not obtain ownership information
TCP 25.135.172.210:29999 0.0.0.0:0 LISTENING
[LFS.exe]
TCP 127.0.0.1:1030 127.0.0.1:1031 ESTABLISHED
[thunderbird.exe]
TCP 127.0.0.1:1031 127.0.0.1:1030 ESTABLISHED
[thunderbird.exe]
TCP 192.168.1.100:139 0.0.0.0:0 LISTENING
Can not obtain ownership information
TCP 192.168.1.100:1310 91.214.238.170:80 CLOSE_WAIT
[wtw.exe]
TCP 192.168.1.100:3052 173.194.113.71:80 CLOSE_WAIT
[wtw.exe]
TCP 192.168.1.100:3119 74.125.136.16:993 ESTABLISHED
[thunderbird.exe]
TCP 192.168.1.100:3120 74.125.136.16:993 ESTABLISHED
[thunderbird.exe]
TCP 192.168.1.100:3121 74.125.136.16:993 ESTABLISHED
[thunderbird.exe]
TCP 192.168.1.100:3122 74.125.136.16:993 ESTABLISHED
[thunderbird.exe]
TCP 192.168.1.100:3262 91.214.237.85:443 ESTABLISHED
[wtw.exe]
TCP 192.168.1.100:3264 157.55.56.155:80 ESTABLISHED
[Skype.exe]
TCP 192.168.1.100:3268 91.197.13.248:80 CLOSE_WAIT
[wtw.exe]
TCP 192.168.1.100:3269 91.190.216.64:12350 ESTABLISHED
[Skype.exe]
TCP 192.168.1.100:3274 168.63.124.173:80 ESTABLISHED
[Explorer.EXE]
TCP 192.168.1.100:3276 65.52.237.45:80 ESTABLISHED
[Explorer.EXE]
TCP 192.168.1.100:3277 46.229.154.8:80 CLOSE_WAIT
[Explorer.EXE]
TCP 192.168.1.100:3278 46.229.154.8:80 CLOSE_WAIT
[Explorer.EXE]
TCP 192.168.1.100:3284 157.56.124.131:443 ESTABLISHED
[Explorer.EXE]
TCP 192.168.1.100:3285 157.56.192.103:443 ESTABLISHED
[Skype.exe]
TCP 192.168.1.100:3327 74.125.136.16:993 ESTABLISHED
[thunderbird.exe]
TCP [::]:135 [::]:0 LISTENING
RpcSs
[svchost.exe]
TCP [::]:445 [::]:0 LISTENING
Can not obtain ownership information
TCP [::]:554 [::]:0 LISTENING
[wmpnetwk.exe]
TCP [::]:1025 [::]:0 LISTENING
[wininit.exe]
TCP [::]:1026 [::]:0 LISTENING
EventLog
[svchost.exe]
TCP [::]:1027 [::]:0 LISTENING
Schedule
[svchost.exe]
TCP [::]:1028 [::]:0 LISTENING
[services.exe]
TCP [::]:1029 [::]:0 LISTENING
[lsass.exe]
TCP [::]:2869 [::]:0 LISTENING
Can not obtain ownership information
TCP [::]:3587 [::]:0 LISTENING
p2psvc
[svchost.exe]
TCP [::]:5357 [::]:0 LISTENING
Can not obtain ownership information
TCP [::]:10243 [::]:0 LISTENING
Can not obtain ownership information
UDP 0.0.0.0:68 *:*
Dhcp
[svchost.exe]
UDP 0.0.0.0:443 *:*
[Skype.exe]
UDP 0.0.0.0:500 *:*
IKEEXT
[svchost.exe]
UDP 0.0.0.0:1434 *:*
[sqlbrowser.exe]
UDP 0.0.0.0:3702 *:*
[dashost.exe]
UDP 0.0.0.0:3702 *:*
EventSystem
[svchost.exe]
UDP 0.0.0.0:3702 *:*
[dashost.exe]
UDP 0.0.0.0:3702 *:*
FDResPub
[svchost.exe]
UDP 0.0.0.0:3702 *:*
FDResPub
[svchost.exe]
UDP 0.0.0.0:3702 *:*
EventSystem
[svchost.exe]
UDP 0.0.0.0:4500 *:*
IKEEXT
[svchost.exe]
UDP 0.0.0.0:5004 *:*
[wmpnetwk.exe]
UDP 0.0.0.0:5005 *:*
[wmpnetwk.exe]
UDP 0.0.0.0:5355 *:*
Dnscache
[svchost.exe]
UDP 0.0.0.0:8976 *:*
[devenv.exe]
UDP 0.0.0.0:8977 *:*
[devenv.exe]
UDP 0.0.0.0:47087 *:*
[Skype.exe]
UDP 0.0.0.0:60985 *:*
FDResPub
[svchost.exe]
UDP 0.0.0.0:60987 *:*
EventSystem
[svchost.exe]
UDP 0.0.0.0:60989 *:*
[dashost.exe]
UDP 25.135.172.210:137 *:*
Can not obtain ownership information
UDP 25.135.172.210:138 *:*
Can not obtain ownership information
UDP 25.135.172.210:1900 *:*
SSDPSRV
[svchost.exe]
UDP 25.135.172.210:29999 *:*
[LFS.exe]
UDP 127.0.0.1:1900 *:*
SSDPSRV
[svchost.exe]
UDP 127.0.0.1:56480 *:*
[Skype.exe]
UDP 127.0.0.1:56481 *:*
[Skype.exe]
UDP 127.0.0.1:60984 *:*
SSDPSRV
[svchost.exe]
UDP 192.168.1.100:137 *:*
Can not obtain ownership information
UDP 192.168.1.100:138 *:*
Can not obtain ownership information
UDP 192.168.1.100:1900 *:*
SSDPSRV
[svchost.exe]
UDP 192.168.1.100:60983 *:*
SSDPSRV
[svchost.exe]
UDP [::]:500 *:*
IKEEXT
[svchost.exe]
UDP [::]:1434 *:*
[sqlbrowser.exe]
UDP [::]:3540 *:*
PNRPsvc
[svchost.exe]
UDP [::]:3702 *:*
FDResPub
[svchost.exe]
UDP [::]:3702 *:*
EventSystem
[svchost.exe]
UDP [::]:3702 *:*
EventSystem
[svchost.exe]
UDP [::]:3702 *:*
FDResPub
[svchost.exe]
UDP [::]:3702 *:*
[dashost.exe]
UDP [::]:3702 *:*
[dashost.exe]
UDP [::]:4500 *:*
IKEEXT
[svchost.exe]
UDP [::]:5004 *:*
[wmpnetwk.exe]
UDP [::]:5005 *:*
[wmpnetwk.exe]
UDP [::]:5355 *:*
Dnscache
[svchost.exe]
UDP [::]:60986 *:*
FDResPub
[svchost.exe]
UDP [::]:60988 *:*
EventSystem
[svchost.exe]
UDP [::]:60990 *:*
[dashost.exe]
UDP [::1]:1900 *:*
SSDPSRV
[svchost.exe]
UDP [::1]:60982 *:*
SSDPSRV
[svchost.exe]
UDP [fe80::9534:8dce:adb6:70a7%12]:1900 *:*
SSDPSRV
[svchost.exe]
UDP [fe80::9534:8dce:adb6:70a7%12]:60981 *:*
SSDPSRV
[svchost.exe]
UDP [fe80::adce:6472:91d1:2fed%19]:546 *:*
Dhcp
[svchost.exe]
UDP [fe80::adce:6472:91d1:2fed%19]:1900 *:*
SSDPSRV
[svchost.exe]
#5 - Tommy
For some unknown reason the 29999 port is used under different ip (25.135.172.210?!). When trying to connect to it I receive information that this port is already used.
I hate networking
#6 - Tommy
[Solved]
It turns out that IT WAS lfs config after all, for some reason I had my ip in config changed (which is used for both: hosting a lfs session and insim).
Reverted it back to 127.0.0.1 and everything works

Win8 + local InSim connection
(6 posts, started )
FGED GREDG RDFGDR GSFDG