取消
显示结果 
搜索替代 
您的意思是: 

Client Server using Internet [ask]

已解决!
转到解答

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.

下载全部
0 项奖励
1 条消息(共 24 条)
5,307 次查看

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)
2 条消息(共 24 条)
5,302 次查看

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 项奖励
3 条消息(共 24 条)
5,299 次查看

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 项奖励
4 条消息(共 24 条)
5,293 次查看

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 项奖励
5 条消息(共 24 条)
5,289 次查看

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 项奖励
6 条消息(共 24 条)
5,281 次查看

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

0 项奖励
7 条消息(共 24 条)
5,272 次查看

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 项奖励
8 条消息(共 24 条)
5,265 次查看

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 项奖励
9 条消息(共 24 条)
5,257 次查看

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)
10 条消息(共 24 条)
5,252 次查看