03-31-2012 02:21 AM
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.
03-31-2012 03:16 AM
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.
03-31-2012 07:34 AM
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)
03-31-2012 08:00 AM - edited 03-31-2012 08:06 AM
I don't understand are you using this function and still you are facing problem in reading the IP Address?
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
03-31-2012 08:42 AM
@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.
03-31-2012 10:51 AM
Yes, it is. If you have a network name server you can use TCP Connect:
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
03-31-2012 02:37 PM
Well using a DNS name instead of an IP address of course requires the target computer to have a DNS name.
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.
04-02-2012 12:22 AM
i will try this one....!