A method for managing network ports of a mobile terminal, comprising: after a Point to Point Protocol over Ethernet, PPPOE, dial-up by the mobile terminal, the mobile terminal completing establishment of a PPPOE connection between the mobile terminal and the Internet; the mobile terminal scanning port numbers of the network ports of the mobile terminal to acquire network ports that are currently occupied, wherein, the scanning is a scan for acquiring an occupancy condition of all the network ports, in which the occupancy condition is which network ports are allocated to process by each application in a current software and which upper applications these network ports are associated with; the mobile terminal detecting and analyzing whether said currently occupied network ports are virtually occupied ports or not, wherein each virtually occupied port refers to a network port that fails to be released properly when that network port is not being used by an application; if yes, then the mobile terminal releasing said virtually occupied ports so as to avoid virtually occupying the network ports after the PPPOE connection is established, wherein the releasing means disconnecting a data connection; wherein, the step of detecting and analyzing whether each of said currently occupied network ports is a virtually occupied port or not comprises: detecting whether a currently occupied network port has data to be received and sent or not; if the currently occupied network port has data to be received and sent, determining that the currently occupied network port is a non-virtually occupied port; if the currently occupied network port only has data to be received or only has data to be sent, then performing a network link detection on the currently occupied network port; if the detection result is that a Hyper Text Transport Protocol/User Datagram Protocol, HTTP/UDP, does not have a packet sending process or a packet distributing process, determining that the currently occupied network port is a virtually occupied port; otherwise, determining that the currently occupied network port is a non-virtually occupied port. after a Point to Point Protocol over Ethernet, PPPOE, dial-up by the mobile terminal, the mobile terminal completing establishment of a PPPOE connection between the mobile terminal and the Internet; the mobile terminal scanning port numbers of the network ports of the mobile terminal to acquire network ports that are currently occupied, wherein, the scanning is a scan for acquiring an occupancy condition of all the network ports, in which the occupancy condition is which network ports are allocated to process by each application in a current software and which upper applications these network ports are associated with; the mobile terminal detecting and analyzing whether said currently occupied network ports are virtually occupied ports or not, wherein each virtually occupied port refers to a network port that fails to be released properly when that network port is not being used by an application; if yes, then the mobile terminal releasing said virtually occupied ports so as to avoid virtually occupying the network ports after the PPPOE connection is established, wherein the releasing means disconnecting a data connection; wherein, the step of detecting and analyzing whether each of said currently occupied network ports is a virtually occupied port or not comprises: detecting whether a currently occupied network port has data to be received and sent or not; if the currently occupied network port has data to be received and sent, determining that the currently occupied network port is a non-virtually occupied port; if the currently occupied network port only has data to be received or only has data to be sent, then performing a network link detection on the currently occupied network port; if the detection result is that a Hyper Text Transport Protocol/User Datagram Protocol, HTTP/UDP, does not have a packet sending process or a packet distributing process, determining that the currently occupied network port is a virtually occupied port; otherwise, determining that the currently occupied network port is a non-virtually occupied port. detecting whether a currently occupied network port has data to be received and sent or not; if the currently occupied network port has data to be received and sent, determining that the currently occupied network port is a non-virtually occupied port; if the currently occupied network port only has data to be received or only has data to be sent, then performing a network link detection on the currently occupied network port; if the detection result is that a Hyper Text Transport Protocol/User Datagram Protocol, HTTP/UDP, does not have a packet sending process or a packet distributing process, determining that the currently occupied network port is a virtually occupied port; otherwise, determining that the currently occupied network port is a non-virtually occupied port.