How to determine the network speed when connecting to the server

Source: Internet
Author: User
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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.