[go: up one dir, main page]

CN102833249A - Method and system of logging network server by application client of mobile terminal - Google Patents

Method and system of logging network server by application client of mobile terminal Download PDF

Info

Publication number
CN102833249A
CN102833249A CN2012103070401A CN201210307040A CN102833249A CN 102833249 A CN102833249 A CN 102833249A CN 2012103070401 A CN2012103070401 A CN 2012103070401A CN 201210307040 A CN201210307040 A CN 201210307040A CN 102833249 A CN102833249 A CN 102833249A
Authority
CN
China
Prior art keywords
domain name
logging
login
network server
unified
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012103070401A
Other languages
Chinese (zh)
Other versions
CN102833249B (en
Inventor
袁凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201210307040.1A priority Critical patent/CN102833249B/en
Publication of CN102833249A publication Critical patent/CN102833249A/en
Application granted granted Critical
Publication of CN102833249B publication Critical patent/CN102833249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明提供一种移动终端的应用客户端登录网络服务器的方法及系统,其中,所述方法包括:S1、通过统一登录域名登录网络服务器;S2、判断是否登录成功;S3、若登录成功,则直接登录所述网络服务器;S4、若登录不成功,则通过与所述统一登录域名前缀不同的产品线域名或通过与所述统一登录域名匹配的IP地址登录所述网络服务器,并在登录所述网络服务器成功后,更新所述统一登录域名。与现有技术相比,本发明的有益效果是:无论智能移动终端内Hosts文件是否被改,都可以登录上网络服务器。

The present invention provides a method and system for an application client of a mobile terminal to log in to a network server, wherein the method includes: S1, logging in to the network server through a unified login domain name; S2, judging whether the login is successful; S3, if the login is successful, then Directly log in to the network server; S4. If the login is unsuccessful, log in to the network server through a product line domain name that is different from the prefix of the unified login domain name or through an IP address that matches the unified login domain name, and log in to the After the network server succeeds, update the unified login domain name. Compared with the prior art, the beneficial effect of the present invention is that no matter whether the Hosts file in the intelligent mobile terminal is changed, the network server can be logged on.

Description

移动终端的应用客户端登录网络服务器的方法及系统Method and system for logging in network server by application client of mobile terminal

技术领域 technical field

本发明涉及一种移动终端的应用客户端登录网络服务器的方法及系统。The invention relates to a method and system for an application client of a mobile terminal to log in to a network server.

背景技术 Background technique

当前,随着智能移动终端(手机、平板电脑等)技术的发展,各种各样的智能移动终端App客户端(App是英文Application的简称)也孕育而生,并且,随着智能移动终端的普及,人们逐渐习惯了使用App客户端上网的方式。At present, with the development of smart mobile terminal (mobile phone, tablet computer, etc.) technology, various smart mobile terminal App clients (App is the abbreviation of English People are gradually getting used to the way of using the App client to surf the Internet.

一般地,智能移动终端都有管理域名映射的文件hosts,然而,某些恶意软件会修改这个hosts文件,例如,让App客户端的某个域名被映射成127.0.0.1,造成App在连接这个域名的时候,连接不上。Generally, smart mobile terminals have a hosts file for managing domain name mapping. However, some malicious software will modify this hosts file, for example, to map a domain name of the App client to 127.0.0.1, causing the App to connect to this domain name. time, can't connect.

发明内容 Contents of the invention

本发明的目的在于提供一种移动终端的应用客户端登录网络服务器的方法。The purpose of the present invention is to provide a method for an application client of a mobile terminal to log in to a network server.

本发明的另一目的在于提供一种移动终端的应用客户端登录网络服务器的系统。Another object of the present invention is to provide a system for logging in a network server by an application client of a mobile terminal.

相应地,本发明的一种实施方式的移动终端的应用客户端登录网络服务器的方法,包括:Correspondingly, a method for an application client of a mobile terminal to log in to a network server according to an embodiment of the present invention includes:

S1、通过统一登录域名登录网络服务器;S1. Log in to the network server through the unified login domain name;

S2、判断是否登录成功;S2, judging whether the login is successful;

S3、若登录成功,则直接登录所述网络服务器;S3. If the login is successful, directly log in to the network server;

S4、若登录不成功,则通过与所述统一登录域名前缀不同的产品线域名或通过与所述统一登录域名匹配的IP地址登录所述网络服务器,并在登录所述网络服务器成功后,更新所述统一登录域名。S4. If the login is unsuccessful, log in to the network server through a product line domain name that is different from the prefix of the unified login domain name or through an IP address that matches the unified login domain name, and after successfully logging in to the network server, update The unified login domain name.

作为本发明的进一步改进,所述S4步骤具体包括:As a further improvement of the present invention, the S4 step specifically includes:

若登录不成功,则通过与统一登录域名前缀不同的产品线域名登录网络服务器;判断是否登录成功,若登录成功,则更新所述统一登录域名;若登录不成功,则通过与所述统一登录域名匹配的IP地址登录所述网络服务器。If the login is unsuccessful, log in to the network server through the domain name of the product line that is different from the prefix of the unified login domain name; judge whether the login is successful, if the login is successful, then update the unified login domain name; The IP address matched by the domain name logs into the web server.

作为本发明的进一步改进,所述S4步骤还包括:As a further improvement of the present invention, the S4 step also includes:

若所述产品线域名登录网络服务器成功,则获取与所述统一登录域名匹配的IP地址。If the product line domain name is successfully logged into the network server, an IP address matching the unified login domain name is obtained.

作为本发明的进一步改进,在“通过与所述统一登录域名匹配的IP地址登录所述网络服务器”后,还包括:As a further improvement of the present invention, after "logging in the network server through the IP address matching the unified login domain name", it also includes:

更新所述统一登录域名和/或所述产品线登录域名。Updating the unified login domain name and/or the product line login domain name.

作为本发明的进一步改进,在“通过与所述统一登录域名匹配的IP地址登录所述网络服务器”后,还包括:As a further improvement of the present invention, after "logging in the network server through the IP address matching the unified login domain name", it also includes:

更新应用客户端的专用IP地址。Update the private IP address of the application client.

作为本发明的进一步改进,在所述“通过与所述统一登录域名匹配的IP地址登录所述网络服务器”后,还包括:As a further improvement of the present invention, after the "logging in the network server through the IP address matching the unified login domain name", it also includes:

判断是否登录成功,若登录成功,则更新所述统一登录域名和/或所述产品线登录域名;Judging whether the login is successful, if the login is successful, updating the unified login domain name and/or the product line login domain name;

若登录不成功,则访问应用客户端专用IP地址,更新统一登录域名的IP地址,并通过更新后的统一登录域名的IP地址,访问网络服务器。If the login is unsuccessful, access the dedicated IP address of the application client, update the IP address of the unified login domain name, and access the web server through the updated IP address of the unified login domain name.

作为本发明的进一步改进,在所述S1步骤前,还包括:As a further improvement of the present invention, before the S1 step, it also includes:

启动应用客户端;Start the application client;

读取Hosts文件,判断是否有访问权限;Read the Hosts file to determine whether it has access rights;

若有,则创建读取线程,并扫描Hosts文件,判断是否需要修改Hosts文件;If so, create a reading thread and scan the Hosts file to determine whether the Hosts file needs to be modified;

若无,则向网络服务器发送请求,获取最新的应用客户端的统一登录域名匹配的IP地址。If not, send a request to the network server to obtain the latest IP address matching the unified login domain name of the application client.

相应地,本发明的一种实施方式的移动终端的应用客户端登录网络服务器的系统,包括:Correspondingly, a system in which an application client of a mobile terminal logs in to a network server according to an embodiment of the present invention includes:

登录模块,用于通过统一登录域名登录网络服务器;以及,判断是否登录成功;若登录成功,则直接登录所述网络服务器;若登录不成功,则通过与所述统一登录域名前缀不同的产品线域名或通过与所述统一登录域名匹配的IP地址登录所述网络服务器,并在登录所述网络服务器成功后,更新所述统一登录域名。The login module is used to log in to the network server through the unified login domain name; and, to determine whether the login is successful; if the login is successful, then directly log in to the network server; The domain name or the IP address matching the unified login domain name is used to log in to the network server, and after the login to the network server is successful, the unified login domain name is updated.

作为本发明的进一步改进,所述登录模块还用于:As a further improvement of the present invention, the login module is also used for:

若登录不成功,则通过与统一登录域名前缀不同的产品线域名登录网络服务器;判断是否登录成功,若登录成功,则更新所述统一登录域名;若登录不成功,则通过与所述统一登录域名匹配的IP地址登录所述网络服务器。If the login is unsuccessful, log in to the network server through the domain name of the product line that is different from the prefix of the unified login domain name; judge whether the login is successful, if the login is successful, then update the unified login domain name; The IP address matched by the domain name logs into the web server.

作为本发明的进一步改进,所述登录模块还用于:As a further improvement of the present invention, the login module is also used for:

若所述产品线域名登录网络服务器成功,则获取与所述统一登录域名匹配的IP地址。If the product line domain name is successfully logged into the network server, an IP address matching the unified login domain name is obtained.

作为本发明的进一步改进,所述登录模块还用于:As a further improvement of the present invention, the login module is also used for:

更新所述统一登录域名和/或所述产品线登录域名。Updating the unified login domain name and/or the product line login domain name.

作为本发明的进一步改进,所述登录模块还用于:As a further improvement of the present invention, the login module is also used for:

更新应用客户端的专用IP地址。Update the private IP address of the application client.

作为本发明的进一步改进,所述登录模块还用于:As a further improvement of the present invention, the login module is also used for:

判断是否登录成功,若登录成功,则更新所述统一登录域名和/或所述产品线登录域名;Judging whether the login is successful, if the login is successful, updating the unified login domain name and/or the product line login domain name;

若登录不成功,则访问应用客户端专用IP地址,更新统一登录域名的IP地址,并通过更新后的统一登录域名的IP地址,访问网络服务器。If the login is unsuccessful, access the dedicated IP address of the application client, update the IP address of the unified login domain name, and access the web server through the updated IP address of the unified login domain name.

作为本发明的进一步改进,所述系统还包括:As a further improvement of the present invention, the system also includes:

预处理模块,用于启动应用客户端,读取Hosts文件,判断是否有访问权限,若有,则创建读取线程,并扫描Hosts文件,判断是否需要修改Hosts文件;若无,则向网络服务器发送请求,获取最新的应用客户端的统一登录域名匹配的IP地址。The preprocessing module is used to start the application client, read the Hosts file, and judge whether there is an access right. If so, create a reading thread, and scan the Hosts file, and judge whether the Hosts file needs to be modified; if not, send it to the network server Send a request to obtain the IP address matching the unified login domain name of the latest application client.

与现有技术相比,本发明的有益效果是:无论智能移动终端内Hosts文件是否被改,都可以登录上网络服务器。Compared with the prior art, the beneficial effect of the present invention is that no matter whether the Hosts file in the intelligent mobile terminal is changed, the network server can be logged on.

附图说明 Description of drawings

图1是本发明一种实施方式中移动终端登录网络服务器的流程图。Fig. 1 is a flowchart of a mobile terminal logging into a network server in an embodiment of the present invention.

图2是本发明一种实施方式中移动终端应用客户端启动的流程图。Fig. 2 is a flow chart of starting an application client of a mobile terminal in an embodiment of the present invention.

图3是本发明一种实施方式中移动终端登录网络服务器的详细工作流程图。Fig. 3 is a detailed workflow diagram of a mobile terminal logging into a network server in an embodiment of the present invention.

图4是本发明一种实施方式中移动终端登录网络服务器的系统模块图。Fig. 4 is a system block diagram of a mobile terminal logging into a network server in an embodiment of the present invention.

具体实施方式 Detailed ways

以下将结合附图所示的各实施方式对本发明进行详细描述。但这些实施方式并不限制本发明,本领域的普通技术人员根据这些实施方式所做出的结构、方法、或功能上的变换均包含在本发明的保护范围内。The present invention will be described in detail below in conjunction with various embodiments shown in the drawings. However, these embodiments do not limit the present invention, and any structural, method, or functional changes made by those skilled in the art according to these embodiments are included in the protection scope of the present invention.

如图1所示,在本发明一实施方式中,所述移动终端的应用客户端登录网络服务器的方法,包括以下步骤:As shown in Figure 1, in one embodiment of the present invention, the method for the application client of the mobile terminal to log in to the network server includes the following steps:

S1、通过统一登录域名登录网络服务器;优选地,在本发明一实施方式中,所述移动终端的系统平台为Android。通过打开移动终端的应用客户端(App)登录网络服务器,例如,通过百度的某个域名:passport.baidu.com(提供pass访问的域名接口)登录相应的网络服务器。S1. Log in to the network server through a unified login domain name; preferably, in an embodiment of the present invention, the system platform of the mobile terminal is Android. Log in to the network server by opening the application client (App) of the mobile terminal, for example, log in to the corresponding network server through a domain name of Baidu: passport.baidu.com (domain name interface that provides pass access).

S2、判断是否登录成功;例如,判断通过passport.baidu.com登录相应的网络服务器,是否可以接收到该网络服务器返回的数据。S2. Determine whether the login is successful; for example, determine whether the data returned by the network server can be received by logging in to the corresponding network server through passport.baidu.com.

S3、若登录成功,则直接登录所述网络服务器;S3. If the login is successful, directly log in to the network server;

S4、若登录不成功,则通过与所述统一登录域名前缀不同的产品线域名或通过与所述统一登录域名匹配的IP地址登录所述网络服务器,并在登录所述网络服务器成功后,更新所述统一登录域名。优选地,在登录不成功时,先通过与统一登录域名前缀不同的产品线域名登录网络服务器,例如通过百度的某个产品域名:wapiknow.baidu.com登录相应的网络服务器,并判断是否登录成功该网络服务器,若登录成功,则更新所述统一登录域名,即是可以通过网络服务器返回的数据更新所述统一登录域名,并在更新该统一登录域名后,可通过更新的统一登录域名登录网络服务器;若登录不成功,再通过与所述统一登录域名匹配的IP地址,例如,通过所述passport.baidu.com匹配的IP地址pass serverIP登录所述网络服务器,一般地,本领域普通技术人员可知,在移动终端系统中,即便域名被修改Hosts,但其匹配的IP是不会被修改的。值得一提的是,所述与统一登录域名匹配的IP地址即可是预存于所述移动终端中,也可是在所述产品线域名登录网络服务器成功后,还可获取与所述统一登录域名匹配的IP地址。S4. If the login is unsuccessful, log in to the network server through a product line domain name that is different from the prefix of the unified login domain name or through an IP address that matches the unified login domain name, and after successfully logging in to the network server, update The unified login domain name. Preferably, when the login is unsuccessful, first log in to the network server through a product line domain name different from the unified login domain name prefix, for example, through a product domain name of Baidu: wapiknow.baidu.com to log in to the corresponding network server, and determine whether the login is successful The network server, if the login is successful, updates the unified login domain name, that is, the unified login domain name can be updated through the data returned by the network server, and after the unified login domain name is updated, the network can be logged in through the updated unified login domain name Server; if the login is unsuccessful, then pass through the IP address matched with the unified login domain name, for example, log in the network server through the IP address pass serverIP matched by the passport.baidu.com, generally, those of ordinary skill in the art It can be seen that in the mobile terminal system, even if the domain name is modified Hosts, its matching IP will not be modified. It is worth mentioning that the IP address that matches the unified login domain name can be pre-stored in the mobile terminal, or the IP address that matches the unified login domain name can be obtained after the product line domain name is successfully logged into the network server. IP address.

在本发明一实施方式中,在通过与所述统一登录域名匹配的IP地址登录所述网络服务器成功后,还可通过所述网络服务器返回的数据,更新所述统一登录域名和/或所述产品线登录域名。如此,在下次通过所述统一登录域名或所述产品线登录域名进行登录时,可直接登录网络服务器或网络服务器。另外,在通过与所述统一登录域名匹配的IP地址登录所述网络服务器后,还可更新所述应用客户端的专用IP地址:pass server get IP。所述专用IP地址用于在与统一登录域名匹配的IP地址更换时,提供新的与统一登录域名匹配的IP地址。这样在通过与所述统一登录域名匹配的IP地址登录所述网络服务器不成功后,可访问该应用客户端的专用IP地址,更新统一登录域名的IP地址,并通过更新后的统一登录域名的IP地址,访问网络服务器。In an embodiment of the present invention, after successfully logging in to the network server through the IP address matching the unified login domain name, the unified login domain name and/or the Product line login domain name. In this way, when logging in through the unified login domain name or the product line login domain name next time, the network server or the network server can be directly logged in. In addition, after logging into the network server through the IP address matching the unified login domain name, the dedicated IP address of the application client can also be updated: pass server get IP. The dedicated IP address is used to provide a new IP address matching the unified login domain name when the IP address matching the unified login domain name is replaced. In this way, after unsuccessfully logging in to the network server through the IP address that matches the unified login domain name, you can access the dedicated IP address of the application client, update the IP address of the unified login domain name, and pass the updated IP address of the unified login domain name. address to access the web server.

如图2所示,在本发明一实施方式中,在S1步骤前,还包括移动终端应用客户端的启动,其包括以下步骤:As shown in Figure 2, in one embodiment of the present invention, before S1 step, also comprise the startup of mobile terminal application client, it comprises the following steps:

启动应用客户端;例如,在移动终端启动名为“百度地图”这个应用客户端。Start the application client; for example, start the application client named "Baidu Map" on the mobile terminal.

读取Hosts文件,判断是否有访问权限;例如,读取“百度地图”的Hosts文件。Read the Hosts file to determine whether it has access rights; for example, read the Hosts file of "Baidu Map".

若有,则创建读取线程,并扫描Hosts文件,判断是否需要修改Hosts文件;优选地,通过扫描Hosts文件,并删除在Hosts文件中有问题的行,同时,记录该应用客户端状态,例如,记录为:state=1。If so, create a reading thread, and scan the Hosts file to determine whether the Hosts file needs to be modified; preferably, by scanning the Hosts file, delete the problematic line in the Hosts file, and record the status of the application client, for example , recorded as: state=1.

若无,则向网络服务器发送请求,获取最新的应用客户端的统一登录域名匹配的IP地址。If not, send a request to the network server to obtain the latest IP address matching the unified login domain name of the application client.

如图3所示,在本发明一种实施方式中,通过访问百度的某个域名为例,介绍该移动终端登录网络服务器的详细工作流程包括:As shown in Figure 3, in one embodiment of the present invention, by accessing a certain domain name of Baidu as an example, the detailed workflow for introducing the mobile terminal to log in to the network server includes:

在启动移动终端应用客户端,并尝试登录网络服务器时,首先判断该应用客户端的状态,例如,若判断该应用程序的状态为state=1,则直接访问当前需要访问的域名:passport.baidu.com,判断是否能访问到网络服务器,若能访问到,则标记状态为state=1,同时,并获取账户的用户标识,即是登录网络服务器成功;若不能访问到,则标记状态为state=2,并重新判断state值。若判断该应用程序的状态为state=2,则访问与当前需要访问的域名匹配的IP地址:pass serverIP,判断是否能访问到网络服务器,若能访问到,则获取专用IP地址(pass serverget IP),将该专用IP地址更新至该移动终端中后,获取账户的用户标识,即是登录网络服务器成功;若不能访问到,则标记状态为state=3,并重新判断state值。若判断该应用程序的状态为state=3,则访问专用IP地址:pass server get IP,判断是否能够访问,若能访问到,与当前需要访问的域名匹配的IP地址(passserver IP),并标记状态为state=2,重新判断state值;若不能访问到,则通知用户升级移动终端应用客户端,并标记状态为state=2。When starting the mobile terminal application client and trying to log in to the network server, first judge the state of the application client, for example, if the state of the application is judged to be state=1, then directly access the domain name that needs to be accessed currently: passport.baidu. com, to determine whether the network server can be accessed, if it can be accessed, the status of the mark is state=1, and at the same time, the user ID of the account is obtained, which means that the login to the network server is successful; if it cannot be accessed, the state of the mark is state= 2, and re-evaluate the state value. If it is determined that the state of the application is state=2, access the IP address that matches the domain name that needs to be accessed currently: pass serverIP, determine whether the network server can be accessed, and if it can, obtain the dedicated IP address (pass serverget IP ), after updating the dedicated IP address to the mobile terminal, obtain the user ID of the account, which means that the login to the network server is successful; if it cannot be accessed, the state is marked as state=3, and the state value is re-judged. If it is judged that the state of the application is state=3, then access the dedicated IP address: pass server get IP, judge whether it can be accessed, if it can be accessed, the IP address (passserver IP) that matches the domain name that needs to be accessed currently, and mark it If the state is state=2, re-evaluate the state value; if it cannot be accessed, notify the user to upgrade the mobile terminal application client, and mark the state as state=2.

如图4所示,在本发明一实施方式中,所述移动终端的应用客户端登录网络服务器的系统,包括:As shown in Figure 4, in one embodiment of the present invention, the application client of the mobile terminal logs in to the system of the network server, including:

登录模块100,用于通过统一登录域名登录网络服务器;优选地,在本发明一实施方式中,所述移动终端的系统平台为Android。通过打开移动终端的应用客户端(App)登录网络服务器,例如,通过百度的某个域名:passport.baidu.com(提供pass访问的域名接口)登录相应的网络服务器。还用于判断是否登录成功;例如,判断通过passport.baidu.com登录相应的网络服务器,是否可以接收到该网络服务器返回的数据,若登录成功,则直接登录所述网络服务器,若登录不成功,则通过与所述统一登录域名前缀不同的产品线域名或通过与所述统一登录域名匹配的IP地址登录所述网络服务器,并在登录所述网络服务器成功后,更新所述统一登录域名。优选地,在登录不成功时,先通过与统一登录域名前缀不同的产品线域名登录网络服务器,例如通过百度的某个产品域名:wapiknow.baidu.com登录相应的网络服务器,并判断是否登录成功该网络服务器,若登录成功,则更新所述统一登录域名,即是可以通过网络服务器返回的数据更新所述统一登录域名,并在更新该统一登录域名后,可通过更新的统一登录域名登录网络服务器;若登录不成功,再通过与所述统一登录域名匹配的IP地址,例如,通过所述passport.baidu.com匹配的IP地址pass server IP登录所述网络服务器,一般地,本领域普通技术人员可知,在移动终端系统中,即便域名被修改Hosts,但其匹配的IP是不会被修改的。值得一提的是,所述与统一登录域名匹配的IP地址即可是预存于所述移动终端中,也可是在所述产品线域名登录网络服务器成功后,还可获取与所述统一登录域名匹配的IP地址。The login module 100 is configured to log in to the network server through a unified login domain name; preferably, in an embodiment of the present invention, the system platform of the mobile terminal is Android. Log in to the network server by opening the application client (App) of the mobile terminal, for example, log in to the corresponding network server through a domain name of Baidu: passport.baidu.com (domain name interface that provides pass access). It is also used to determine whether the login is successful; for example, to determine whether the data returned by the network server can be received by logging in to the corresponding network server through passport.baidu.com, if the login is successful, then directly log in to the network server, if the login is unsuccessful , log in to the network server through a product line domain name different from the prefix of the unified login domain name or through an IP address matching the unified login domain name, and update the unified login domain name after successfully logging in to the network server. Preferably, when the login is unsuccessful, first log in to the network server through a product line domain name different from the unified login domain name prefix, for example, through a product domain name of Baidu: wapiknow.baidu.com to log in to the corresponding network server, and determine whether the login is successful The network server, if the login is successful, updates the unified login domain name, that is, the unified login domain name can be updated through the data returned by the network server, and after the unified login domain name is updated, the network can be logged in through the updated unified login domain name Server; if the login is unsuccessful, then pass through the IP address matched with the unified login domain name, for example, log in the network server through the IP address pass server IP matched by the passport.baidu.com, generally, ordinary technology in the art People know that in the mobile terminal system, even if the domain name is modified Hosts, its matching IP will not be modified. It is worth mentioning that the IP address that matches the unified login domain name can be pre-stored in the mobile terminal, or the IP address that matches the unified login domain name can be obtained after the product line domain name is successfully logged into the network server. IP address.

在本发明一实施方式中,所述登录模块还用于在通过与所述统一登录域名匹配的IP地址登录所述网络服务器成功后,还可通过所述网络服务器返回的数据,更新所述统一登录域名和/或所述产品线登录域名。如此,在下次通过所述统一登录域名或所述产品线登录域名进行登录时,可直接登录网络服务器或网络服务器。另外,在通过与所述统一登录域名匹配的IP地址登录所述网络服务器后,还可更新所述应用客户端的专用IP地址:pass server get IP。所述专用IP地址用于在与统一登录域名匹配的IP地址更换时,提供新的与统一登录域名匹配的IP地址。这样在通过与所述统一登录域名匹配的IP地址登录所述网络服务器不成功后,可访问该应用客户端的专用IP地址,更新统一登录域名的IP地址,并通过更新后的统一登录域名的IP地址,访问网络服务器。In an embodiment of the present invention, the login module is further configured to update the unified login module through the data returned by the network server after the IP address matching the unified login domain name is successfully logged in to the network server. The login domain name and/or the login domain name for the product line in question. In this way, when logging in through the unified login domain name or the product line login domain name next time, the network server or the network server can be directly logged in. In addition, after logging into the network server through the IP address matching the unified login domain name, the dedicated IP address of the application client can also be updated: pass server get IP. The dedicated IP address is used to provide a new IP address matching the unified login domain name when the IP address matching the unified login domain name is replaced. In this way, after unsuccessfully logging in to the network server through the IP address that matches the unified login domain name, you can access the dedicated IP address of the application client, update the IP address of the unified login domain name, and pass the updated IP address of the unified login domain name. address to access the web server.

预处理模块200,用于启动应用客户端;例如,在移动终端启动名为“百度地图”这个应用客户端,读取Hosts文件,判断是否有访问权限;例如,读取“百度地图”的Hosts文件。若有,则创建读取线程,并扫描Hosts文件,判断是否需要修改Hosts文件;优选地,通过扫描Hosts文件,并删除在Hosts文件中有问题的行,同时,记录该应用客户端状态,例如,记录为:state=1。若无,则向网络服务器发送请求,获取最新的应用客户端的统一登录域名匹配的IP地址。The preprocessing module 200 is used to start the application client; for example, start the application client named "Baidu Map" on the mobile terminal, read the Hosts file, and judge whether there is access authority; for example, read the Hosts of "Baidu Map" document. If so, create a reading thread, and scan the Hosts file to determine whether the Hosts file needs to be modified; preferably, by scanning the Hosts file, delete the problematic line in the Hosts file, and record the status of the application client, for example , recorded as: state=1. If not, send a request to the network server to obtain the latest IP address matching the unified login domain name of the application client.

综上所述,通过本发明的方法和系统,无论智能移动终端内Hosts文件是否被改,都可以登录上网络服务器。To sum up, through the method and system of the present invention, no matter whether the Hosts file in the smart mobile terminal has been changed, it can log in to the network server.

为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在统一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above devices, functions are divided into various units and described separately. Of course, when implementing the present application, the functions of each unit can be implemented in one or more pieces of software and/or hardware.

通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,信息推送服务器,或者网络设备等)执行本申请各个实施方式或者实施方式的某些部分所述的方法。It can be known from the above description of the implementation manners that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general-purpose hardware platform. Based on this understanding, the essence of the technical solution of this application or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in storage media, such as ROM/RAM, disk , CD, etc., including several instructions to make a computer device (which may be a personal computer, an information push server, or a network device, etc.) execute the methods described in various embodiments or some parts of the embodiments of this application.

以上所描述的装置实施方式仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施方式方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。The device implementations described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without creative effort.

本申请可用于众多通用或专用的计算系统环境或配置中。例如:个人计算机、信息推送服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、置顶盒、可编程的消费电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。The application can be used in numerous general purpose or special purpose computing system environments or configurations. Examples: personal computers, push message server computers, handheld or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers , a distributed computing environment including any of the above systems or devices, and the like.

本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。This application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.

应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施方式中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。It should be understood that although this description is described according to implementation modes, not each implementation mode only contains an independent technical solution, and this description in the description is only for clarity, and those skilled in the art should take the description as a whole, and each The technical solutions in the embodiments can also be properly combined to form other embodiments that can be understood by those skilled in the art.

上文所列出的一系列的详细说明仅仅是针对本发明的可行性实施方式的具体说明,它们并非用以限制本发明的保护范围,凡未脱离本发明技艺精神所作的等效实施方式或变更均应包含在本发明的保护范围之内。The series of detailed descriptions listed above are only specific descriptions for feasible implementations of the present invention, and they are not intended to limit the protection scope of the present invention. Any equivalent implementation or implementation that does not depart from the technical spirit of the present invention All changes should be included within the protection scope of the present invention.

Claims (14)

1. the method for the applications client logging in network server of a portable terminal is characterized in that, the method for said portable terminal logging in network server may further comprise the steps:
S1, through unified logging domain name logging in network server;
S2, judge whether to login successfully;
S3, if login successfully, then directly login the said webserver;
S4, unsuccessful as if login; Then through with said unified logging domain name prefix Different products line domain name or through logining the said webserver with the IP address of said unified logging domain name coupling; And after the said webserver success of login, upgrade said unified logging domain name.
2. the method for the applications client logging in network server of portable terminal according to claim 1 is characterized in that, said S4 step specifically comprises:
If login is unsuccessful, then through with unified logging domain name prefix Different products line domain name logging in network server; Judge whether to login successfully,, then upgrade said unified logging domain name if login successfully; If login is unsuccessful, then through logining the said webserver with the IP address of said unified logging domain name coupling.
3. the method for the applications client logging in network server of portable terminal according to claim 2 is characterized in that, said S4 step also comprises:
If the IP address with said unified logging domain name coupling is then obtained in said product line domain name logging in network server success.
4. according to the method for the applications client logging in network server of claim 2 or 3 described portable terminals, it is characterized in that, after " through logining the said webserver ", also comprise with the IP address of said unified logging domain name coupling:
Upgrade said unified logging domain name and/or said product line login domain name.
5. according to the method for the applications client logging in network server of claim 2 or 3 described portable terminals, it is characterized in that, after " through logining the said webserver ", also comprise with the IP address of said unified logging domain name coupling:
Upgrade the private ip address of applications client.
6. according to the method for the applications client logging in network server of claim 2 or 3 described portable terminals, it is characterized in that, after said " through logining the said webserver ", also comprise with the IP address of said unified logging domain name coupling:
Judge whether to login successfully,, then upgrade said unified logging domain name and/or said product line login domain name if login successfully;
If login is unsuccessful, then the access application client private ip address upgrades the IP address of unified logging domain name, and the IP address of the unified logging domain name after passing through to upgrade, access web server.
7. the method for the applications client logging in network server of portable terminal according to claim 1 is characterized in that, before said S1 step, also comprises:
Start applications client;
Read the Hosts file, judged whether access rights;
If have, then create and read thread, and scanning Hosts file, judge whether to need to revise the Hosts file;
If do not have, then send request to the webserver, obtain the IP address of the unified logging domain name coupling of up-to-date applications client.
8. the system of the applications client logging in network server of a portable terminal is characterized in that, the system of said portable terminal logging in network server comprises:
Login module is used for through unified logging domain name logging in network server; And, judge whether to login successfully; If login successfully, then directly login the said webserver; If login is unsuccessful; Then through with said unified logging domain name prefix Different products line domain name or through logining the said webserver with the IP address of said unified logging domain name coupling; And after the said webserver success of login, upgrade said unified logging domain name.
9. the system of the applications client logging in network server of portable terminal according to claim 8 is characterized in that said login module also is used for:
If login is unsuccessful, then through with unified logging domain name prefix Different products line domain name logging in network server; Judge whether to login successfully,, then upgrade said unified logging domain name if login successfully; If login is unsuccessful, then through logining the said webserver with the IP address of said unified logging domain name coupling.
10. the system of the applications client logging in network server of portable terminal according to claim 9 is characterized in that said login module also is used for:
If the IP address with said unified logging domain name coupling is then obtained in said product line domain name logging in network server success.
11. the system according to the applications client logging in network server of claim 9 or 10 described portable terminals is characterized in that said login module also is used for:
Upgrade said unified logging domain name and/or said product line login domain name.
12. the system according to the applications client logging in network server of claim 9 or 10 described portable terminals is characterized in that said login module also is used for:
Upgrade the private ip address of applications client.
13. the system according to the applications client logging in network server of claim 9 or 10 described portable terminals is characterized in that said login module also is used for:
Judge whether to login successfully,, then upgrade said unified logging domain name and/or said product line login domain name if login successfully;
If login is unsuccessful, then the access application client private ip address upgrades the IP address of unified logging domain name, and the IP address of the unified logging domain name after passing through to upgrade, access web server.
14. the system of the applications client logging in network server of portable terminal according to claim 8 is characterized in that said system also comprises:
Pretreatment module is used to start applications client, reads the Hosts file, has judged whether access rights, if having, then create and read thread, and scanning Hosts file, judge whether to need to revise the Hosts file; If do not have, then send request to the webserver, obtain the IP address of the unified logging domain name coupling of up-to-date applications client.
CN201210307040.1A 2012-08-24 2012-08-24 The method and system of the applications client logging in network server of mobile terminal Active CN102833249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210307040.1A CN102833249B (en) 2012-08-24 2012-08-24 The method and system of the applications client logging in network server of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210307040.1A CN102833249B (en) 2012-08-24 2012-08-24 The method and system of the applications client logging in network server of mobile terminal

Publications (2)

Publication Number Publication Date
CN102833249A true CN102833249A (en) 2012-12-19
CN102833249B CN102833249B (en) 2018-12-14

Family

ID=47336219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210307040.1A Active CN102833249B (en) 2012-08-24 2012-08-24 The method and system of the applications client logging in network server of mobile terminal

Country Status (1)

Country Link
CN (1) CN102833249B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685601A (en) * 2013-12-10 2014-03-26 华为技术有限公司 Application identification method and device
CN104468851A (en) * 2013-09-17 2015-03-25 昆达电脑科技(昆山)有限公司 Portable device manage system and method
CN118449855A (en) * 2024-07-04 2024-08-06 荣耀终端有限公司 Network configuration method and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068183A (en) * 2007-06-28 2007-11-07 杭州华三通信技术有限公司 Network access control method and network access control system
CN101668050A (en) * 2008-09-07 2010-03-10 赵捷 Method and system for analyzing a domain name
US7792994B1 (en) * 2005-06-15 2010-09-07 Symantec Corporation Correlating network DNS data to filter content
CN101997903A (en) * 2009-08-27 2011-03-30 国际商业机器公司 Method and system for processing hypertext transfer protocol request
US20120215869A1 (en) * 2009-10-20 2012-08-23 Zte Corporation Multimedia Message Transmission Method and Apparatus Thereof, and Domain Name Server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7792994B1 (en) * 2005-06-15 2010-09-07 Symantec Corporation Correlating network DNS data to filter content
CN101068183A (en) * 2007-06-28 2007-11-07 杭州华三通信技术有限公司 Network access control method and network access control system
CN101668050A (en) * 2008-09-07 2010-03-10 赵捷 Method and system for analyzing a domain name
CN101997903A (en) * 2009-08-27 2011-03-30 国际商业机器公司 Method and system for processing hypertext transfer protocol request
US20120215869A1 (en) * 2009-10-20 2012-08-23 Zte Corporation Multimedia Message Transmission Method and Apparatus Thereof, and Domain Name Server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ROY1986121: "上网时发现可以通过IP地址登录网页,但不能通过域名通过,可能出现的故障在哪里", 《URL:HTTPS://ZHIDAO.BAIDU.COM/QUESTION/422185406.HTML》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468851A (en) * 2013-09-17 2015-03-25 昆达电脑科技(昆山)有限公司 Portable device manage system and method
CN104468851B (en) * 2013-09-17 2018-01-30 昆达电脑科技(昆山)有限公司 Manage the system and method for portable apparatus
CN103685601A (en) * 2013-12-10 2014-03-26 华为技术有限公司 Application identification method and device
WO2015085850A1 (en) * 2013-12-10 2015-06-18 华为技术有限公司 Application identification method and device
CN118449855A (en) * 2024-07-04 2024-08-06 荣耀终端有限公司 Network configuration method and electronic device

Also Published As

Publication number Publication date
CN102833249B (en) 2018-12-14

Similar Documents

Publication Publication Date Title
US9177122B1 (en) Managing secure firmware updates
US9680964B2 (en) Programming model for installing and distributing occasionally connected applications
US9632764B2 (en) Defining configurable characteristics of a product and associating configuration with enterprise resources
US9882940B2 (en) Method for logging in a website hosted by a server by multi-account and the client
CN102801574B (en) The detection method of a kind of web page interlinkage, device and system
CN109639701B (en) Access control method, device and equipment based on OPC protocol and storage medium
EP2771803B1 (en) File fetch from a remote client device
CN109802919B (en) Web page access interception method and device
US20140181262A1 (en) Use of internet information services logging to collect user information in an asynchronous manner
US11086827B1 (en) Dataset schema and metadata management service
WO2013143403A1 (en) Method and system for accessing website
CN103491543A (en) Method for detecting malicious websites through wireless terminal, and wireless terminal
WO2018035163A1 (en) Techniques for determining threat intelligence for network infrastructure analysis
WO2019076014A1 (en) Webpage generation method and apparatus, terminal device and medium
CN103678508A (en) Method and device for opening a webpage
CN102982091A (en) Techniques for dynamic domain-based isolation
CN104580406A (en) Method and device for synchronizing login status
TW201616382A (en) Account login method and device
US9756012B1 (en) Domain name service information propagation
WO2014090088A1 (en) Method, server, and system for data sharing in social networking service
CN103838799A (en) Method, terminal device, cloud server and system for recommending installing software
CN116723247A (en) Microservice calling methods, devices, equipment and storage media
CN102833249B (en) The method and system of the applications client logging in network server of mobile terminal
US10705945B1 (en) Computing system testing service
US11438393B1 (en) Origin server address rotation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant