Abstract:
A system and method for a communication connection in network architecture are provided. First, a client terminal is linked to a target terminal via the Internet. Then whether the link mode is a virtual link or a substantial link is determined. If the link mode is the substantial link, the client terminal is communicationally connected to the target terminal via the substantial link. If the link mode is the virtual link, whether a local area network is linked via a STUN server is determined. If yes, a peer-to-peer link is built via the STUN server. If no, the client terminal is communicationally connected to a management server of the local area network, and then the management server is communicationally connected to the target terminal.
Claims:
1. A method for a communication connection in network architecture, wherein the network architecture includes the Internet, a client terminal, and a target terminal, the method for the communication connection comprising the steps of:linking the client terminal to the target terminal via the Internet, wherein the link mode includes a substantial link and a virtual link; anddetermining the link mode, wherein when the link mode is determined to be the substantial link, the client terminal is communicationally connected to the target terminal via the substantial link, and when the link mode is determined to be the virtual link, the target terminal is in a local area network, the client terminal is communicationally connected to a management server of the local area network, and then the management server is communicationally connected to the target terminal.
2. The method for the communication connection according to claim 1, wherein the method for the communication connection comprises the step of storing virtual Internet protocol (IP) address data for the determined link mode to compare the virtual IP address data with a linked IP address.
3. The method for the communication connection according to claim 2, wherein when the linked IP address conforms to the virtual IP address data, the link mode is the virtual link, and when the linked IP address does not conform to the virtual IP address data, the link mode is the substantial link.
4. The method for the communication connection according to claim 1, wherein after the step of determining that the link mode is the virtual link, the method for the communication connection further comprises the step of determining whether the local area network is linked via a simple traversal of user datagram protocol through network address translators (STUN) server.
5. The method for the communication connection according to claim 4, wherein the STUN server utilizes a network address translation (NAT) to designate a virtual IP address of the target terminal, when the local area network is determined to be linked via the STUN server, the client terminal corresponds to the virtual IP address to be communicationally connected to the target terminal, and when the local area network is determined not to be linked via the STUN server, the client terminal is communicationally connected to the management server of the local area network, and then the management server is communicationally connected to the target terminal.
6. The method for the communication connection according to claim 5, wherein the step of determining whether the local area network is linked via the STUN server is interpreting package information responded by the STUN server to the client terminal after the client terminal is linked to the target terminal via the Internet, and when table-header information of the packet information has characteristic information corresponding to the STUN server, the local area network is determined to be linked via the STUN server.
7. The method for the communication connection according to claim 1, wherein the management server makes all target terminals in the local area network correspond to different management accounts, respectively, and the management server is communicationally connected to the target terminal via the management account.
8. The method for the communication connection according to claim 1, wherein the local area network is linked via a firewall.
9. A system for a communication connection in network architecture, wherein the network architecture includes the Internet, a client terminal, and a target terminal, and the system for the communication connection is disposed in the client terminal, the system for the communication connection comprising:a link module, wherein the client terminal utilizes the link module to be linked to the target terminal via the Internet, and the link mode includes a substantial link and a virtual link; anda link determination module for determining whether the link mode is the substantial link or the virtual link;wherein when the link determination module determines that the link mode is the substantial link, the link module is communicationally connected to the target terminal via the substantial link, and when the link determination module determines that the link mode is the virtual link, the target terminal is in a local area network, the link module is communicationally connected to a management server of the local area network, and then the management server is communicationally connected to the target terminal.
10. The system for the communication connection according to claim 9, wherein the system for the communication connection further comprises:a storage device for storing virtual IP address data beforehand;wherein the link determination module determines the link mode by comparing the IP address linked by the link module with the virtual IP address data in the storage device to determine whether they conform to each other, if the IP address linked by the link module conforms to the virtual IP address data in the storage device, the link mode is the virtual link, and if the IP address linked by the link module does not conform to the virtual IP address data in the storage device, the link mode is the substantial link.
11. The system for the communication connection according to claim 9, wherein after the link determination module determines that the link mode is the virtual link, the link determination module further determines whether the local area network is linked via a STUN server.
12. The system for the communication connection according to claim 11, wherein the STUN server utilizes a network address translation (NAT) to designate a virtual IP address of the target terminal, when the link determination module determines that the local area network is linked via the STUN server, the link module corresponds to the virtual IP address to be communicationally connected to the target terminal, and when the link determination module determines that the local area network is not linked via the STUN server, the link module is communicationally connected to the management server of the local area network, and the management server is communicationally connected to the target terminal.
13. The system for the communication connection according to claim 12, wherein the link determination module determines whether the local area network is linked via the STUN server by interpreting package information responded by the STUN server to the link module after the link module is linked to the target terminal via the Internet, and when table-header information of the packet information has characteristic information corresponding to the STUN server, the link determination module determines that the local area network is linked via the STUN server.
14. The system for the communication connection according to claim 9, wherein the management server makes all target terminals in the local area network correspond to different management accounts, and the management server is communicationally connected to the target terminal via the management account.
15. The system for the communication connection according to claim 9, wherein the local area network is linked via a firewall