This project has moved. For the latest updates, please go here.

Problem App DataSubscriber connection

Nov 16, 2011 at 2:51 PM

Hello,

I am trying to make an App using the Data Subscriber. This App is implemented  on a local network (computer 1, IP: 192.168.0.3) and its purpose is to connect to serve OpenPDC (computer 2, IP: 192.168.0.2) and bring a specific measurement to computer 1. I  have had problems with the connection between computer 1 (App computer) and computer 2 (OpenPDC computer).  I have tried the connection in this way:

	   // Attach to subscriber events
            subscriber.StatusMessage += subscriber_StatusMessage;
            subscriber.ProcessException += subscriber_ProcessException;
            subscriber.ConnectionEstablished += subscriber_ConnectionEstablished;
            subscriber.ConnectionTerminated += subscriber_ConnectionTerminated;
            subscriber.NewMeasurements += subscriber_NewMeasurements;

            // Initialize subscriber
            subscriber.ConnectionString = "server=192.168.0.2:6165";
            subscriber.Initialize();


            // Start subscriber connection cycle
            subscriber.Start();

 I get the fallowing Exception:

EXCEPTION: Data subscriber encountered an exception while attempting publisher c
onnection: A socket operation was attempted to an unreachable network 192.168.0.
2:6165

* What could be  the connection problem? for this development, what is the form to set the ConnectionString?

The firewall is disabled.

Itan

Coordinator
Nov 21, 2011 at 7:40 PM

Did you ever get this working - looks like a kind of network issue - are these two computers using the same subnet?

Thanks!
Ritchie