Please help. What exactly should be allowed in Windows 7 Pro Firewall for reliable reconnecting local IG to remote OPC Server which is located directly in PLC (local network)?
If I Connect to PLCs OPC Server when Firewall is turned off, it connects and reconnects OK (after e.g. IG Restart etc.)
If I Connect and only after that turn on Firewall, IG remain connected OK, but after restarting IG the connection gets into Faulted:
java.lang.Exception: Error advising subscription callback. DCOM security settings are likely preventing the OPC server from connecting to the client for callbacks.
com.inductiveautomation.opccom.wrapper.subscriptions.COMSubscription.oleloop_updateGroup(COMSubscription.java:735)
com.inductiveautomation.opccom.wrapper.subscriptions.COMSubscription$Connector.internalRun(COMSubscription.java:781)
com.inductiveautomation.opccom.wrapper.OleJob.run(OleJob.java:50)
com.jniwrapper.win32.MessageLoopThread$ThreadSynchronizedAction.run(MessageLoopThread.java:585)
com.jniwrapper.win32.MessageLoopThread$LoopThread.run(MessageLoopThread.java:527)
com.jniwrapper.win32.com.ComException: COM object method returns error code: 0x80004005; E_FAIL (Unspecified error)
com.jniwrapper.win32.com.impl.IUnknownImpl.invokeStandardVirtualMethod(SourceFile:758)
com.jniwrapper.win32.com.impl.IUnknownImpl.invokeStandardVirtualMethod(SourceFile:737)
com.jniwrapper.win32.ole.impl.IConnectionPointImpl.advise(SourceFile:93)
com.inductiveautomation.opccom.wrapper.subscriptions.DataChangeDispatcher.advise(DataChangeDispatcher.java:86)
com.inductiveautomation.opccom.wrapper.subscriptions.COMSubscription.oleloop_updateGroup(COMSubscription.java:733)
com.inductiveautomation.opccom.wrapper.subscriptions.COMSubscription$Connector.internalRun(COMSubscription.java:781)
com.inductiveautomation.opccom.wrapper.OleJob.run(OleJob.java:50)
com.jniwrapper.win32.MessageLoopThread$ThreadSynchronizedAction.run(MessageLoopThread.java:585)
com.jniwrapper.win32.MessageLoopThread$LoopThread.run(MessageLoopThread.java:527)
and reconnects only after turning off the Firewall and restarting IG.
EDIT: I was wrong that after turning the Firewall On while being connected, the connection work OK. It works for some time (several minutes) but then stops - the values of tags stop changing. Only the status of the OPC Server connection remains Connected.
When I turn the Firewall Off, the values start to live again.