这里应该可能是你用本地地址访问导致IP获取不正确。
在上面一行插入以下代码修复
完整代码:
sip=split(ip,".")
if ubound(sip)<>3 then sip=split("127.0.0.1",".")
for i=0 to ubound(sip)
if not IsNumeric(sip(i)) then sip(i)=0
next
num=cint(sip(0))*256*256*256+cint(sip(1))*256*256+cint(sip(2))*256+cint(sip(3))-1