How to determine the network speed when connecting to the server Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiNetwork/html/delphi_20061128103014241.html
I used DELPHI6 + sqlserver2000. If I used DELPHI6 to develop Program When I connect to the database SQL2000 through VPN, how can I determine whether the program runs on the VPN or on the lan? Generally, does it determine the network speed? For example, when I judge how quickly the program connects to the database server, I can determine the network speed. For example, if the program is larger than 10 m, it is a LAN, and if the program is smaller than 4 m, it is a VPN? Or is there any other method? Are there any related Code Write it out
When the VPN is connected to the database SQL2000,
It depends on the bandwidth of your ADSL Broadband Network connected to the Internet? This will affect the connection speed...
How did you build a VPN and what hardware VPN route is used? Does the VPN connection software come with the operating system?
The IP address can only be used for confirmation. The network speed cannot be determined when the bandwidth is not fully occupied. If you directly connect to SQL, you do not know how to obtain the IP address.
if it is determined by IP address, that is, the IP address of the server is obtained through the client? What is the IP address of the server?
1. If the server is on a LAN, if the server is a dual-nic, one is on the internet, and the other is on the local area, the server has two IP addresses, one is the internal IP address of the LAN and the other is the IP address of the Internet. However, this program cannot be said to be running on the VPN or the LAN, how can this problem be determined to be running on the lan?
second, if the server is located elsewhere, the client must be connected to the server through a VPN. The VPN only serves to simulate a LAN, however, the bandwidth speed is much lower than the real LAN speed. But when the client connects to the server through a VPN, how can I determine that the LAN is connected through a VPN?