A method for managing release of a network port of a mobile terminal, the method comprising: during a Point-to-Point Protocol over Ethernet, PPPoE, dialup or after completion of the PPPoE dialup, scanning network ports of a current mobile terminal, wherein the scan operation refers to counting which network ports are idle and recording causes of releasing the network ports, and wherein the network ports are network ports related to the TCP/IP, and each upper layer application that is related to a network uses a network port for communication; determining whether the idle network ports are released erroneously, determining whether restoration of connection is desired to be implemented on an upper layer application corresponding to an erroneously released network port, and implementing the restoration of connection according to conditions of current network connection and the PPPoE dialup when the restoration of connection is desired; wherein the step of determining whether the idle network ports are released erroneously comprises: determining first whether current network ports are never allocated or idle due to being released by an upper layer application and then determining causes of being idle; if a network port is considered as being already allocated and thus can't be used normally because the network port is correlated with an upper layer application before, regarding the network port as being released erroneously; or if a network port is idle due to being released by an upper layer application but a cause of its latest release is Not Normal, regarding the network port as being released erroneously; wherein the step of implementing the restoration of connection according to conditions of current network connection and the PPPoE dialup comprises: if the current network connection is interrupted, releasing all network ports, and re-performing the PPPoE dialup when the network connection returns to normal; and if the current network connection and the PPPoE dialup are normal, completing PPPoE dialup connection. during a Point-to-Point Protocol over Ethernet, PPPoE, dialup or after completion of the PPPoE dialup, scanning network ports of a current mobile terminal, wherein the scan operation refers to counting which network ports are idle and recording causes of releasing the network ports, and wherein the network ports are network ports related to the TCP/IP, and each upper layer application that is related to a network uses a network port for communication; determining whether the idle network ports are released erroneously, determining whether restoration of connection is desired to be implemented on an upper layer application corresponding to an erroneously released network port, and implementing the restoration of connection according to conditions of current network connection and the PPPoE dialup when the restoration of connection is desired; wherein the step of determining whether the idle network ports are released erroneously comprises: determining first whether current network ports are never allocated or idle due to being released by an upper layer application and then determining causes of being idle; if a network port is considered as being already allocated and thus can't be used normally because the network port is correlated with an upper layer application before, regarding the network port as being released erroneously; or if a network port is idle due to being released by an upper layer application but a cause of its latest release is Not Normal, regarding the network port as being released erroneously; wherein the step of implementing the restoration of connection according to conditions of current network connection and the PPPoE dialup comprises: if the current network connection is interrupted, releasing all network ports, and re-performing the PPPoE dialup when the network connection returns to normal; and if the current network connection and the PPPoE dialup are normal, completing PPPoE dialup connection. determining first whether current network ports are never allocated or idle due to being released by an upper layer application and then determining causes of being idle; if a network port is considered as being already allocated and thus can't be used normally because the network port is correlated with an upper layer application before, regarding the network port as being released erroneously; or if a network port is idle due to being released by an upper layer application but a cause of its latest release is Not Normal, regarding the network port as being released erroneously; wherein the step of implementing the restoration of connection according to conditions of current network connection and the PPPoE dialup comprises: if the current network connection is interrupted, releasing all network ports, and re-performing the PPPoE dialup when the network connection returns to normal; and if the current network connection and the PPPoE dialup are normal, completing PPPoE dialup connection. if the current network connection is interrupted, releasing all network ports, and re-performing the PPPoE dialup when the network connection returns to normal; and if the current network connection and the PPPoE dialup are normal, completing PPPoE dialup connection.