JP2001274798A - Terminal information setting method - Google Patents

Terminal information setting method

Info

Publication number
JP2001274798A
JP2001274798A JP2000082217A JP2000082217A JP2001274798A JP 2001274798 A JP2001274798 A JP 2001274798A JP 2000082217 A JP2000082217 A JP 2000082217A JP 2000082217 A JP2000082217 A JP 2000082217A JP 2001274798 A JP2001274798 A JP 2001274798A
Authority
JP
Japan
Prior art keywords
address
terminal information
host
application program
information
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.)
Pending
Application number
JP2000082217A
Other languages
Japanese (ja)
Inventor
Hideyuki Ando
秀行 安藤
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2000082217A priority Critical patent/JP2001274798A/en
Publication of JP2001274798A publication Critical patent/JP2001274798A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To solve the problem where the conventional terminal information setting method sometimes causes disagreement between an IP address of an operating system OS and an IP address of an application, because the OS side can freely set the IP address and the setting is not reflected on terminal information of the application. SOLUTION: In a system, where an application program working on a host to which an IP address is set, fetches the IP address of the host and stores it as terminal information, and the terminal information is used to distinguish its own host from other hosts in a network, the application program acquires the IP address of the host, when the application is started, compares the IP address with the stored terminal information, provides a confirmation purpose output to a user to update the terminal information with the IP address, when the comparison result indicates disagreement, and the terminal information is updated with the acquired IP address of the host, in response to an update instruction by the user.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、TCP/IPネッ
トワークにおけるIPアドレスをアプリケーションプロ
グラムの端末識別情報として使用する方法に関する。
The present invention relates to a method of using an IP address in a TCP / IP network as terminal identification information of an application program.

【0002】[0002]

【従来の技術】ネットワークプロトコルにTCP/IP
を使用するホストでは、OS(オペレーティングシステ
ム)側でIPアドレスを設定し、記憶している。そのよ
うなホスト上で動作するアプリケーションプログラム
は、このIPアドレスを取り込んで自他ホストを識別す
る情報として利用することができる。例えば、サーバ側
とクライアント側の同種アプリケーションプログラムが
協調して動作するクライアント/サーバシステムにおい
て、複数存在するクライアントアプリケーションを識別
するために、IPアドレスを利用することができる。そ
して、クライアントアプリケーションが使用するIPア
ドレスを、サーバアプリケーションは自分のデータベー
スに記憶しておき、データベースに登録された正規のク
ライアントアプリケーションとだけ交信するようにして
いる。多くの場合、アプリケーションプログラムの導入
時や製品出荷時にあらかじめ、クライアントのIPアド
レスを設定し、それをサーバアプリケーションのデータ
ベースに登録しておくことが行われる。
2. Description of the Related Art TCP / IP is used as a network protocol.
In a host that uses, an OS (operating system) sets and stores an IP address. An application program running on such a host can take this IP address and use it as information for identifying its own host. For example, in a client / server system in which the same type of application program on the server side and the client side operate in cooperation, an IP address can be used to identify a plurality of existing client applications. Then, the server application stores the IP address used by the client application in its own database, and communicates only with the legitimate client application registered in the database. In many cases, an IP address of a client is set in advance when an application program is introduced or a product is shipped, and the IP address is registered in a database of a server application.

【0003】[0003]

【発明が解決しようとする課題】IPアドレスの設定は
OS側の機能として実現されている。従って、アプリケ
ーションプログラムとは関係なく、ユーザが自由に設
定、変更できるようになっている。もし、クライアント
のOS側で設定するIPアドレスが変更されていて、そ
れがアプリケーションプログラムのデータベースに反映
されていなかった場合、そのクライアントアプリケーシ
ョンからのアクセス要求に対しては、正規のクライアン
トからの要求ではないとして、サーバアプリケーション
は交信を拒否する可能性がある。よって、本来クライア
ント/サーバシステムとして動作するはずのシステムが
機能しなくなる問題が起こり得る。
The setting of the IP address is realized as a function on the OS side. Therefore, the user can freely set and change the settings regardless of the application program. If the IP address set on the client OS has been changed and it has not been reflected in the database of the application program, the access request from the client application is not accepted by the request from the legitimate client. If not, the server application may reject the contact. Therefore, a problem may occur in which a system that should originally operate as a client / server system does not function.

【0004】[0004]

【課題を解決するための手段】本発明は、IPアドレス
が設定されているホスト上で動作するアプリケーション
プログラムがそのホストのIPアドレスを取り込んで端
末情報として記憶し、その端末情報をネットワーク内で
自ホストと他のホストとを区別するために使用するよう
になしたシステムにおいて、アプリケーションプログラ
ムは起動されるとホストのIPアドレスを取得し、次に
そのIPアドレスと記憶している端末情報とを比較し、
比較の結果一致しない場合に端末情報をそのIPアドレ
スで更新することをユーザに確認するよう出力し、ユー
ザによって更新が指示されたことに応じて、端末情報を
取得したホストのIPアドレスで更新することで、上記
課題を解決するものである。
According to the present invention, an application program operating on a host to which an IP address is set fetches the IP address of the host, stores it as terminal information, and stores the terminal information in a network. In a system used to distinguish a host from other hosts, an application program obtains an IP address of a host when started, and then compares the IP address with stored terminal information. And
If the comparison does not result in a match, the terminal information is output to the user to confirm that the terminal information is to be updated with the IP address, and in response to the update instruction from the user, the terminal information is updated with the IP address of the host that acquired the terminal information. This solves the above problem.

【0005】[0005]

【実施例】図1は、実施例のクライアント/サーバシス
テムを示す。1つのサーバ装置10と複数のクライアン
ト装置17が、通信回線16を介してローカルなネット
ワークを構成している。そして、サーバ装置10に導入
されたサーバアプリケーションプログラム12と、クラ
イアント装置17に導入されたクライアントアプリケー
ションプログラム19とが協調して動作するようになっ
ている。クライアント装置17はサーバ装置10にぶら
下がるようにあるので端末とも呼ばれる。クライアント
装置17は同じような構成なので図では特に1台だけ示
している。実施例では、外部のグローバルなネットワー
クともつながることを考慮して、サーバ装置10とクラ
イアント装置17をそれぞれホストとも呼び、それぞれ
IPアドレスで識別するようにしている。IPアドレス
はそれぞれのOS(オペレーティングシステム)11,
18が設定し、それぞれの2次記憶装置13,20に記
憶して管理している。一方、アプリケーションプログラ
ム12,19は、OS11,18が設定した自ホストの
IPアドレス14,21を取得し、自分が存在するホス
トを表す端末情報15,22として、OSが管理するI
Pアドレス14,21とは別に2次記憶装置13,20
に記憶する。
FIG. 1 shows a client / server system according to an embodiment. One server device 10 and a plurality of client devices 17 form a local network via a communication line 16. Then, the server application program 12 installed in the server device 10 and the client application program 19 installed in the client device 17 operate in cooperation. The client device 17 is also called a terminal because it is hanging from the server device 10. Since the client device 17 has the same configuration, only one client device is shown in the figure. In the embodiment, in consideration of connection with an external global network, the server device 10 and the client device 17 are each also referred to as a host, and each is identified by an IP address. The IP address is the OS (operating system) 11,
18 is set and stored in the respective secondary storage devices 13 and 20 for management. On the other hand, the application programs 12 and 19 acquire the IP addresses 14 and 21 of their own hosts set by the OSs 11 and 18 and obtain the terminal information 15 and 22 representing the host where they are located as I / O managed by the OS.
Secondary storage devices 13 and 20 separately from P addresses 14 and 21
To memorize.

【0006】実施例システムでは、各ホストのIPアド
レスは製品出荷時にあらかじめ設定されている。また、
各アプリケーションプログラムが記憶する端末情報に
も、それぞれのホストのIPアドレスがあらかじめ設定
されて出荷される。従って、システムの運用開始時に
は、それぞれのホストにおいてIPアドレスと端末情報
とは一致しているものである。さらに、サーバアプリケ
ーション12は、全クライアント17の端末情報22を
端末情報データベース15に記憶している。これは、サ
ーバアプリケーション12と交信することを許された正
規のクライアントアプリケーション19を登録するため
のものである。そして、このデータベース15に登録さ
れていない端末即ちホスト上のクライアントアプリケー
ション19からのアクセス要求に対して、サーバアプリ
ケーション12は拒否するようになっている。従って、
ホストのIPアドレスと、そのホスト上で動くアプリケ
ーションプログラムの端末情報とは、常に一致している
必要がある。そこで、アプリケーションプログラムは、
少なくともその起動時には、自ホストのIPアドレスと
自分の端末情報とを比較して、違っていた場合には端末
情報を正しいIPアドレスに更新するようにしている。
In the system of the embodiment, the IP address of each host is set in advance at the time of product shipment. Also,
The terminal information stored in each application program is also shipped with the IP address of each host set in advance. Therefore, at the start of operation of the system, the IP address and the terminal information in each host are the same. Further, the server application 12 stores the terminal information 22 of all the clients 17 in the terminal information database 15. This is for registering an authorized client application 19 that is allowed to communicate with the server application 12. The server application 12 refuses an access request from a client application 19 on a terminal that is not registered in the database 15, that is, on the host. Therefore,
The IP address of the host and the terminal information of the application program running on the host must always match. Therefore, the application program
At least at the time of activation, the IP address of the host is compared with its own terminal information, and if they are different, the terminal information is updated to the correct IP address.

【0007】図2は、クライアントアプリケーション1
9の起動時の動作を示している。アプリケーションプロ
グラムは起動されると、先ず、自ホストのIPアドレス
21を取得する(ステップS21)。次に、自分が管理
する端末情報22とそのIPアドレス21とを比較する
(同S22)。比較の結果、一致しなければ(同S2
3;No)、端末情報を新しいIPアドレスで更新して
もよいか否か、そのIPアドレスを画面に表示してユー
ザに対して問い合せる(同S24)。ユーザから更新す
る旨の入力を受け付けると(同S25;Yes)、その
IPアドレスを新しい端末情報としてサーバアプリケー
ション12に通知しておく。サーバアプリケーション1
2はそれに応じて端末情報データベースを書き換える
(同S26)。そして、クライアントアプリケーション
19は、その新しいIPアドレスでもって自分が管理す
る端末情報22を更新する(同S27)。
FIG. 2 shows a client application 1
9 shows an operation at the time of startup. When the application program is started, first, it acquires the IP address 21 of its own host (step S21). Next, the terminal information 22 managed by itself is compared with its IP address 21 (S22). As a result of the comparison, if they do not match (S2
3; No), whether the terminal information can be updated with the new IP address is displayed on the screen to inquire the user (S24). When an input to update is received from the user (S25; Yes), the IP address is notified to the server application 12 as new terminal information. Server application 1
2 rewrites the terminal information database accordingly (S26). Then, the client application 19 updates the terminal information 22 managed by itself with the new IP address (S27).

【0008】尚、ステップS24とS25において、端
末情報を書き換えてもよいかどうかユーザに問い合せて
いるが、これをしないで、端末情報とIPアドレスとが
一致しないことが分かったら、自動的に端末情報を新し
いIPアドレスで更新するようにしてもよい。また、そ
の場合は、端末情報を更新したことをユーザに知らせる
ように表示するのがよい。
In steps S24 and S25, the user is asked whether the terminal information can be rewritten. If the terminal information is not found to match the IP address without checking this, the terminal is automatically rewritten. The information may be updated with a new IP address. In that case, it is preferable to display the terminal information so as to inform the user that the terminal information has been updated.

【0009】また、上述した実施例では、アプリケーシ
ョンプログラムの起動時に端末情報とIPアドレスとの
不一致を検出するようにしているが、これを随時または
定期的に行うようにしてもよい。例えば、サーバ装置1
0は24時間運転されることもあるので、起動時のみ検
証したのでは不充分である。クライアント装置も同様で
ある。そこで、一定時間おきに、または毎日決まった時
刻に検証するようにアプリケーションプログラムを動作
させることができる。
In the above-described embodiment, the mismatch between the terminal information and the IP address is detected when the application program is started. However, this may be performed at any time or periodically. For example, server device 1
Since 0 may be operated for 24 hours, it is not sufficient to verify only at startup. The same applies to the client device. Thus, the application program can be operated so as to verify at regular time intervals or at a fixed time every day.

【0010】[0010]

【発明の効果】本発明によれば、OS側でIPアドレス
を変更した場合にも、それがアプリケーションプログラ
ムの端末情報にほぼ自動的に反映されるようになる。そ
れにより、従来は先ずアプリケーションプログラムのユ
ーティリティで新しいIPアドレス即ち端末情報を設定
し、次にOS側でホストのIPアドレスを変更するよう
にしていたものが、通常のOS側の作業だけで済むよう
になる。また、一方の設定を変更し忘れたり、どちらか
または両方のIPアドレスの入力間違いによる不一致も
防止できるようになる。
According to the present invention, even when the IP address is changed on the OS side, the change is almost automatically reflected on the terminal information of the application program. As a result, instead of first setting a new IP address, that is, terminal information using a utility of an application program, and then changing the IP address of the host on the OS side, only the work on the normal OS side is sufficient. become. In addition, it is possible to prevent the user from forgetting to change one of the settings, or from mismatching due to an input error of one or both of the IP addresses.

【図面の簡単な説明】[Brief description of the drawings]

【図1】実施例の構成を示すブロック図である。FIG. 1 is a block diagram illustrating a configuration of an embodiment.

【図2】実施例におけるアプリケーションプログラムの
動作を示す図である。
FIG. 2 is a diagram illustrating an operation of an application program in the embodiment.

【符号の説明】[Explanation of symbols]

10 サーバ装置 11、18 オペレーティングシ
ステム 12 サーバアプリケーションプログラム 13、2
0 2次記憶装置 14 IPアドレス 15 端末情報データベース
16 通信回線 17 クライアント装置 19 クライアントアプリ
ケーションプログラム 21 IPアドレス 22 端末情報
10 Server device 11, 18 Operating system 12 Server application program 13, 2
0 Secondary storage device 14 IP address 15 Terminal information database
16 communication line 17 client device 19 client application program 21 IP address 22 terminal information

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 IPアドレスが設定されているホスト上
で動作するアプリケーションプログラムがそのホストの
IPアドレスを取り込んで端末情報として記憶し、その
端末情報をネットワーク内で自ホストと他のホストとを
区別するために使用するようになしたシステムにおい
て、 前記アプリケーションプログラムは起動されるとホスト
のIPアドレスを取得し、次にそのIPアドレスと記憶
している端末情報とを比較し、比較の結果一致しない場
合に端末情報をそのIPアドレスで更新することをユー
ザに確認するよう出力し、ユーザによって更新が指示さ
れたことに応じて、端末情報を取得したホストのIPア
ドレスで更新することを特徴とする端末情報設定方法。
1. An application program running on a host to which an IP address is set, fetches the IP address of the host, stores the information as terminal information, and distinguishes the terminal information from its own host and other hosts in a network. When the application program is started, the application program obtains the IP address of the host, compares the IP address with the stored terminal information, and does not match as a result of the comparison. In this case, the terminal information is output so as to confirm to the user that the terminal information is to be updated with the IP address, and the terminal information is updated with the IP address of the host that acquired the terminal information in response to the update instruction from the user. Terminal information setting method.
【請求項2】 IPアドレスが設定されているホスト上
で動作し、そのホストのIPアドレスを取り込んで端末
情報として記憶し、その端末情報をネットワーク内で他
のホストと自ホストとを区別するために使用するアプリ
ケーションプログラムであって、 前記アプリケーションプログラムは起動されるとホスト
のIPアドレスを取得し、次にそのIPアドレスと記憶
している端末情報とを比較し、比較の結果一致しない場
合に端末情報をそのIPアドレスで更新することをユー
ザに確認するよう出力し、ユーザによって更新が指示さ
れたことに応じて端末情報をそのIPアドレスで更新
し、以後は、更新した端末情報を自他ホストの識別情報
とするプログラムを記憶した機械読取可能な媒体。
2. Operating on a host to which an IP address is set, taking in the IP address of the host, storing the information as terminal information, and distinguishing the terminal information from other hosts and the host in the network. An application program used when the application program is started, obtains an IP address of the host, and then compares the IP address with stored terminal information. The information is output to confirm to the user that the information is updated at the IP address, and the terminal information is updated with the IP address in response to the update instruction from the user. A machine-readable medium that stores a program to be used as the identification information of the computer.
JP2000082217A 2000-03-23 2000-03-23 Terminal information setting method Pending JP2001274798A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000082217A JP2001274798A (en) 2000-03-23 2000-03-23 Terminal information setting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000082217A JP2001274798A (en) 2000-03-23 2000-03-23 Terminal information setting method

Publications (1)

Publication Number Publication Date
JP2001274798A true JP2001274798A (en) 2001-10-05

Family

ID=18599048

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000082217A Pending JP2001274798A (en) 2000-03-23 2000-03-23 Terminal information setting method

Country Status (1)

Country Link
JP (1) JP2001274798A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113271326A (en) * 2020-02-17 2021-08-17 阿里巴巴集团控股有限公司 Network protocol address scheduling method and device and electronic equipment
KR20220039064A (en) * 2020-09-21 2022-03-29 한화솔루션 주식회사 Method and system for initial setup of energy storage system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113271326A (en) * 2020-02-17 2021-08-17 阿里巴巴集团控股有限公司 Network protocol address scheduling method and device and electronic equipment
KR20220039064A (en) * 2020-09-21 2022-03-29 한화솔루션 주식회사 Method and system for initial setup of energy storage system
KR102411028B1 (en) * 2020-09-21 2022-06-20 한화솔루션 주식회사 Method and system for initial setup of energy storage system
US11888813B2 (en) 2020-09-21 2024-01-30 Hanwha Solutions Corporation Method and system for initial setup of energy storage system

Similar Documents

Publication Publication Date Title
US7013462B2 (en) Method to map an inventory management system to a configuration management system
JP4285420B2 (en) Sensor network management system
US7554931B2 (en) System and method for remote dynamic network configuration
US20070294414A1 (en) Thin client system using session managing server and session managing method
EP1704672A1 (en) Automatic update system and method for using a meta mib
US9344399B2 (en) Relay server and relay communication system
CN108683532B (en) Main and standby synchronization method and device
WO2014112581A1 (en) Device management apparatus, device management system, device management method, and program
JPH09330284A (en) Automatic ip address allocating method
JP2007237300A (en) Control apparatus, robot system, and method for controlling robot
JP2001274798A (en) Terminal information setting method
US20050135271A1 (en) Network information setting method, network system and communication device
JP4262244B2 (en) System and method for determining specified connections between components of a computing device
JP4645236B2 (en) Network device address automatic setting method and system
JP3730545B2 (en) Service control application execution method and system
CN111447080B (en) Private network decentralization control method, device and computer readable storage medium
JP3681859B2 (en) Information processing device
US20200210559A1 (en) Method and system for configurable device fingerprinting
JP2000354062A (en) System and method for communication
JP4195657B2 (en) Network address assignment device, network address assignment method, and network address assignment program
WO2020142060A1 (en) Method and system for configurable device fingerprinting
JP2001325221A (en) Electronic equipment and server/client system
JP5176482B2 (en) Management program, management method, management apparatus, and communication system
JP4463222B2 (en) COMMUNICATION SYSTEM, SERVER DEVICE, AND WEB SERVICE PROVIDING METHOD USED FOR THEM
US20210336855A1 (en) Method for establishing network connection between server and network device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040617

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040622

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20041019