How do I get the IP of the recording server from the SDK?

I’m using the SDK to connect to a server infrastructure where I have 1 main/management server with 2 recording servers. The management and 1 recording server are running on the same computer and the other recording server on another computer.

My software connects to the main server using the SDK. I try to retrieve video data using the protocol integration route. I use the URI provided by the item structure to use as information to connect to the image server. However, the URI for the 1st recording server is an IP address while the other gives me the hostname which I can’t use to make a connection.

I’m using the SDK to connect to a server infrastructure where I have 1 main/management server with 2 recording servers. The management and 1 recording server are running on the same computer and the other recording server on another computer.

My software connects to the main server using the SDK. I try to retrieve video data using the protocol integration route. I use the URI provided by the item structure to use as information to connect to the image server. However, the URI for the 1st recording server is an IP address while the other gives me the hostname which I can’t use to make a connection.

e.g. I’d get an item from the SDK and access its serverId with

item.FQID.ServerId // which returns "computername:7563"

On, a side note I would like to know how would I go about getting a data-only/non-ui video data stream from a camera using the SDK? I just need a lead because it is unclear for me in the documentation on how to do this. This is the only reason im using the protocol intergration alongside the SDK integration.

Whether a recording server uses hostname or IP is a matter of setup. This is not different in MIP SDK than in Smart Client or other uses.

See - https://developer.milestonesys.com/s/article/View-and-stream-video-from-XProtect-Advanced-VMS-Recording-Servers-without-DNS-name-resolution

I think what you are looking for is RawLiveSourve / RawVideoSource, this is simlar to JpegLiveSource/JpegVideoSource/BitmapLiveSource/BitmapVideoSource only the “raw” classes give you the raw data as it was submitted by the camera. To understand the raw stream you might have to see "The GenericByteData format

"

https://doc.developer.milestonesys.com/html/index.html?base=mipgenericbytedata/main.html&tree=tree_3.html