LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IP address in LAN

Hello!!!
 
   How to get IP address of client pc on server pc using datasocket or TCP tools in Labview 7.0???????
 
anivij
0 Kudos
Message 1 of 13
(3,997 Views)

Hi anivij,

i´m not sure if there is an easier way, but one solution could be to take the remote adress from the "TCP Wait on listener" and search for it in the result of "netstat". You can get this result by using the "System Exec.vi" with the call of "netstat".

Hope this helps.

Mike

0 Kudos
Message 2 of 13
(3,970 Views)
Are you trying to get the IP address from a hostname? If so, the following will do it:



The functions are in Data Communications -> Protocols -> TCP


Message Edited by smercurio_fc on 04-24-2008 09:26 AM
Message 3 of 13
(3,946 Views)

thank u,

your information is useful but it gives me ip address of client pc. i want ip address or hostname of pc which is disconnected from TCP connection, plz help me with this.

0 Kudos
Message 4 of 13
(3,926 Views)


anivij wrote:

thank u,

your information is useful but it gives me ip address of client pc. i want ip address or hostname of pc which is disconnected from TCP connection, plz help me with this.


Hi anvivij,
now i´m confused. "disconnected from TCP"??? In your first post you said something completely different. What do you want to do?
Mike
0 Kudos
Message 5 of 13
(3,916 Views)
Hello mike
 
actually i want to display list of ip addresses of all client PCs on server PC... n if one of them get disconnected in between then ip address of that perticular client PC should get disappeared from the above list displayed on server PC.
 
anivij
0 Kudos
Message 6 of 13
(3,909 Views)

Hi anivij,

do you write client and server part? If yes, you can send the client ip to the server and store it there.

Mike

0 Kudos
Message 7 of 13
(3,893 Views)
You need to provide a more clear explanation of what you're doing. These contradictory "wants" and snippets of information do not serve to paint a clear a picture of what you're trying to do and what you've actually written.
0 Kudos
Message 8 of 13
(3,880 Views)
i am doin project on lan connection using TCP protocol....in that two softwares will be there server software and client software..i have used tcp tools of labview7.0. i want to display name of all the client machiens connected to server machienes on server machien.i.e. in server software......and i want if any of the client machien got disconnected in between i.e. if any of the client software is closed while server software is running,name of that client software shud get disappeared from the list of the names which is displayed on server machine.
0 Kudos
Message 9 of 13
(3,869 Views)

Hi anivij,

how do you get the names of the connected clients to the server currently? What did you have at the moment? Did you see the shipped Client Server Examples?

Mike

0 Kudos
Message 10 of 13
(3,865 Views)