ほとんどの IP データベースには、"starting IP range (開始 IP 範囲)" と "ending IP range (終了 IP 範囲)" の列が含まれています。これらの列の値は、一般に 8 桁の整数です。ユーザーのデータには、おそらく、ピリオドで区切られた 9 桁の番号の IP アドレスが含まれています。たとえば、1.23.456.789 です。IP アドレスの位置を調べるには、IP アドレスを整数に変換して、そのアドレスが存在する IP 範囲を調べる必要があります。
まず、IP アドレス データと IP アドレス データベース間に 2 つの結合を作成する必要があります。(INT(
LEFT([IP Address],(FIND([IP Address], ".")))
))*16777216+
(INT(
LEFT(
MID([IP Address],
FIND([IP Address],".")+1),
FIND(MID([IP Address],FIND([IP Address],".")+1),".")-1)
))*65536+
(INT(
MID([IP Address],
FIND([IP Address], ".", FIND([IP Address], ".") +1)+1,
(FIND([IP Address], ".", FIND([IP Address], ".", FIND([IP Address],"." ) +1) +1)) - (FIND([IP Address], ".", FIND([IP Address], ".") +1))-1
)
))*256+
(INT(
RIGHT([IP Address],
LEN([IP Address]) -
FIND([IP Address], ".", FIND([IP Address], ".", FIND([IP Address],"." ) +1) +1)
)(INT(
LEFT([IP Address],(FIND([IP Address], ".")))
))*16777216+
(INT(
LEFT(
MID([IP Address],
FIND([IP Address],".")+1),
FIND(MID([IP Address],FIND([IP Address],".")+1),".")-1)
))*65536+
(INT(
MID([IP Address],
FIND([IP Address], ".", FIND([IP Address], ".") +1)+1,
(FIND([IP Address], ".", FIND([IP Address], ".", FIND([IP Address],"." ) +1) +1)) - (FIND([IP Address], ".", FIND([IP Address], ".") +1))-1
)
))*256+
(INT(
RIGHT([IP Address],
LEN([IP Address]) -
FIND([IP Address], ".", FIND([IP Address], ".", FIND([IP Address],"." ) +1) +1)
)
))001458025
40 KB
60 KB

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.