LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

find static IP adress through LabVIEW

I want to make possible the communication of two computers through internet using LabVIEW. Actually am designing a system in which instructor send and receive data from a long distance (in range of thousands of KiloMeters). It is possible through internetoffcourse but each time its IP adress will be changed and i want to find that every time

 please suggest me if it is possible using Labview.

0 Kudos
Message 1 of 8
(4,443 Views)

You can use the String to IP and then IP to string function with the dot notation enabled. You can leave the String in the String to IP function unwired.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 8
(4,441 Views)

The IP adress is dynamic i have done TCP/IP communication at my workplace but it is different this time

The dynamic IP adress should be detected every time for communication.

 

we use RELIANCE NET CONNECT to both the systems (out of which one is at remote place)

0 Kudos
Message 3 of 8
(4,431 Views)

I don't understand are you using this function and still you are facing problem in reading the IP Address?

 

IP Address.png

 

 

Yes I got your problem you are not able to connect to the remote PC because your IP keeps on changing. I don't think you will be able to do that because you are communication to the Remote PC through TCP/IP but the IP itself is not availble Smiley Surprised

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 8
(4,427 Views)

@G.Ana wrote:

The IP adress is dynamic i have done TCP/IP communication at my workplace but it is different this time

The dynamic IP adress should be detected every time for communication.


You can't "detect" IP addresses. All that you can do is to attempt a connection and see if you get one. If you do not know the IP address then you have to try them one at a time. You could use OS-related commands such as arp to get a list of addresses, assuming the network is setup. You can find examples on how to use arp on the internet. Just Google for it.

0 Kudos
Message 5 of 8
(4,420 Views)

Yes, it is. If you have a network name server you can use TCP Connect:

TCP Connect.png

 

As it says in the documentation: "address is the address with which you want to establish a connection. This address can be in IP dot notation or it can be a hostname." So, you can suply the name of the computer that you want to connect to. TCP will check with a name server to find the IP address at the time of connection. This is, of course, assuming that you have a name server running that handles dynamic IP addresses.

 

Rob

Message 6 of 8
(4,414 Views)

Well using a DNS name instead of an IP address of course requires the target computer to have a DNS name. Smiley Wink

 

For local networks this can be solved with a DHCP server with DNS resolution but for access over the internet this is a bit more complicated.

Since the target system is on some kind of remote connected interface (DSL, Dialup or whatever) and it's IP address changes dynamically you have to find a way to do DNS registering somewhere on a puclically available location.

 

One way to do that is to sign up a DNS name with a Dynamic DNS service provider. A list of some possible providers can be found here:

http://dnslookup.me/dynamic-dns/

 

Basically your remote system needs some sort of software that implements RFC 2136 to inform the Dynamic DNS service provider of your choice about the current (dynamic) IP address of your computer.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 7 of 8
(4,399 Views)

i will try this one....!

0 Kudos
Message 8 of 8
(4,376 Views)