LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to extract ip address from tcp session object?

Is there a way to extract the ip address information from a tcp session object?
0 Kudos
Message 1 of 4
(2,823 Views)
None that I know of. Which address are you interested in?

You need to know the remote IP address to open a connection in the first place.

You can get the local IP address using a combination of String to IP and IP to String.

Steven H.
0 Kudos
Message 2 of 4
(2,812 Views)
I'm interested in the remote end of the connection. Yes, I needed to know the address when the session was opened, but I'm maintaining a data structure that includes a reference to the open tcp session. This reference is used in various sub vi's, and in one of them I'd like to do some logging where I need to know the other host's address.

Thanks.
0 Kudos
Message 3 of 4
(2,799 Views)
The TCP listener VI returns the remote address (the client's IP). Is that what you are looking for?

Prakash K
0 Kudos
Message 4 of 4
(2,785 Views)