LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Client Server using Internet [ask]

Solved!
Go to solution

I have a client server project who connect between LAN connection and now I want to upgrade it into internet connection. I have search several programs who has similar architecture but none is suitable. Could anybody help me out how to build basic client server which connect using internet connection?

 

I have attach my previous program below, I really appreciated if anyone may modify it so be able connect trough internet.

Download All
0 Kudos
Message 1 of 24
(4,173 Views)

Hi,

 

with your program, you seem to have the full control over your house ;-). Why it shouldn't work over internet as it is? You have TCP open, TCP close...in Internet, you simply have to use other IP-adresses as the local ones. So can you specify your question? Or is it a problem with your LAN-infrastructure, that you have to configure your router to have access from outside?

 

I don't see why it shouldn't work over Inet...

 

christian


THINK G!! 😉
------------------------------------------------------------------------------------------------
Using LabView 2010 and 2011 on Mac and Win
Programming in Microsoft Visual C++ (Win), XCode (Mac)
Message 2 of 24
(4,168 Views)

I don't know why it won't work. I just try several times using different computers with the same version of LabVIEW, set the server's IP address to the client side but still not work, an error occur tell that my TCP close has problem . Have you try with your machine?

0 Kudos
Message 3 of 24
(4,165 Views)

No, I haven't tried...as I have only one machine...but the program itself works? Because you said, that TCP close has a problem, and this is at the end of your program...so everything works except the ending of the program?

 

 


THINK G!! 😉
------------------------------------------------------------------------------------------------
Using LabView 2010 and 2011 on Mac and Win
Programming in Microsoft Visual C++ (Win), XCode (Mac)
0 Kudos
Message 4 of 24
(4,159 Views)

The program works in two condition:

1. Run the client and server in one machine and using port number as their communication ID.

2. Run the client and server in different machine with same OS inside LAN network.

 

But in internet connection, it cannot work. Do you have any samples related with my system or has similarity TCP/IP model with the system?

 

 

0 Kudos
Message 5 of 24
(4,155 Views)

On my system, I tried it on the same machine, and it works... whats the problem with an internet connection, as it isn't anything different than a LAN-connection?


THINK G!! 😉
------------------------------------------------------------------------------------------------
Using LabView 2010 and 2011 on Mac and Win
Programming in Microsoft Visual C++ (Win), XCode (Mac)
0 Kudos
Message 6 of 24
(4,147 Views)

Ehehe, I also do not know what the different. It should not has any problem in internet connection if in LAN works, right?

0 Kudos
Message 7 of 24
(4,138 Views)

yeah, thats right. you checked all "non labview"-causes for this?

 

- Firewalls?

- Router which needs port forwarding?

 

Tried to ping from one computer to the other over internet? You can reach your host?


THINK G!! 😉
------------------------------------------------------------------------------------------------
Using LabView 2010 and 2011 on Mac and Win
Programming in Microsoft Visual C++ (Win), XCode (Mac)
0 Kudos
Message 8 of 24
(4,131 Views)

The ping is successful, host can be reached...

Is the problem may occur if the OS between two machines is different? Because first machine is using XP and the second using Win7.

0 Kudos
Message 9 of 24
(4,123 Views)

normally not...should work between different platforms too...whats your exact config? how you try it? one pc and one laptop or two computers? router (which one?) or some dialup-internet-connection? you are sure you ping your computer and not your router if you have one? tried to open a telnet connection to the specific port (command prompt, enter telnet, enter, type "open", enter, insert ip to open connection to, space and port number, enter...)


THINK G!! 😉
------------------------------------------------------------------------------------------------
Using LabView 2010 and 2011 on Mac and Win
Programming in Microsoft Visual C++ (Win), XCode (Mac)
Message 10 of 24
(4,118 Views)