有沒有這樣功能的東西﹖

Mac 軟體使用經驗交流專區

版主: Alex Tsaiross_ttdigdog

回覆文章
內容
發表人
頭像
Franky
留言五百如一日
文章: 684
註冊時間: 07/01/2001 1:01 am
來自: 香港特別行政區
聯繫:

有沒有這樣功能的東西﹖

#1 文章 Franky »

現在的寬頻服務常常自動的把IP更改,
有沒有方法或是program可以check到我的
IP假如是更改了,便會自動地通知我﹖
如果是email通知便更好。 [img]images/smiles/icon_rolleyes.gif[/img]
頭像
rlong
嗜冰客
文章: 1530
註冊時間: 04/30/2001 1:01 am
來自: 新竹
聯繫:

有沒有這樣功能的東西﹖

#2 文章 rlong »

我亦有相同的需求!中華電訊一固定IP可比兩個浮動IP每個月貴上一倍呢。況且浮動IP亦較固定IP容易躲避駭客攻擊。 [img]images/smiles/icon_eek.gif[/img]
頭像
Franky
留言五百如一日
文章: 684
註冊時間: 07/01/2001 1:01 am
來自: 香港特別行政區
聯繫:

有沒有這樣功能的東西﹖

#3 文章 Franky »

我認為最重要是因成本的問題,在香港的商家那有這樣關心你的電腦會不會給hack,一個IP多少銀兩呀,而且,他也不會給你用便宜的費用架一web server呢。
applescript辦得倒嗎?我對applescript是完全不董。 [img]images/smiles/icon_razz.gif[/img]
頭像
rlong
嗜冰客
文章: 1530
註冊時間: 04/30/2001 1:01 am
來自: 新竹
聯繫:

有沒有這樣功能的東西﹖

#4 文章 rlong »

成功了!今天我成功的用Quick keys設定每天幾個時間點自動打開IP router的[IP顯示網頁]並打開[以電子郵件自動傳送畫面]email到我的信箱,讓我隨時看到目前IP位址。哈!
Quickeys不僅在Mac好用,在PC Windows也很棒!可以做網路校正系統時間的工作。哈! [img]images/smiles/icon_biggrin.gif[/img] [img]images/smiles/icon_biggrin.gif[/img] [img]images/smiles/icon_biggrin.gif[/img]
頭像
Franky
留言五百如一日
文章: 684
註冊時間: 07/01/2001 1:01 am
來自: 香港特別行政區
聯繫:

有沒有這樣功能的東西﹖

#5 文章 Franky »

可不分享一下。
[img]images/smiles/icon_eek.gif[/img]
留言五百如一日
文章: 610
註冊時間: 12/25/2001 1:01 am

有沒有這樣功能的東西﹖

#6 文章 »

Franky,

The following script will send an email to you, with the IP address as subject. Tested in Mac OS X with Entourage X.

Or, tell me which email client do you use and sample of your internet connect log, let me amend the script to suit your need.

--- script start ---

-- it's my email address, change it to yours
set mAdd to "cherish@mac.com"

-- 56K dail up
-- the last 5th paragraph is the local IP address
-- your log maybe different
tell application "Internet Connect"
set icLog to log
end tell
set IPadd to (paragraph -5 of icLog)

tell application "Microsoft Entourage"
activate
-- keep the follwing code in one line
set IPmail to make new outgoing message with properties {subject:"The current " & IPadd, recipient:{{recipient type:to recipient, address:{display name:"bill", address:mAdd}}}}
-- keep the above code in one line
send IPmail
end tell

It's step 1.

Step 2 is to use idle handler to trigger this script periodically.

[ 01-18-2002: 留言編輯者: 悲 ]

[ 01-18-2002: 留言編輯者: 悲 ]
頭像
the real unknown
冰果室打手
文章: 2610
註冊時間: 04/26/2001 1:01 am
來自: GMT-5
聯繫:

有沒有這樣功能的東西﹖

#7 文章 the real unknown »

<BLOCKQUOTE><font size="1" face="XYZ">quote:</font><HR>原始發信人 rlong:
<STRONG>Quickeys不僅在Mac好用,在PC Windows也很棒!可以做網路校正系統時間的工作。哈! [img]images/smiles/icon_biggrin.gif[/img] [img]images/smiles/icon_biggrin.gif[/img] [img]images/smiles/icon_biggrin.gif[/img]</STRONG><HR></BLOCKQUOTE>

NTP在Mac OS 9/X和Windows XP都是內建的,為何需要用Quickeys呢?我不覺得Quickeys能比NTP挍得準。
頭像
the real unknown
冰果室打手
文章: 2610
註冊時間: 04/26/2001 1:01 am
來自: GMT-5
聯繫:

有沒有這樣功能的東西﹖

#8 文章 the real unknown »

<BLOCKQUOTE><font size="1" face="XYZ">quote:</font><HR>原始發信人 rlong:
<STRONG>我亦有相同的需求!中華電訊一固定IP可比兩個浮動IP每個月貴上一倍呢。況且浮動IP亦較固定IP容易躲避駭客攻擊。 [img]images/smiles/icon_eek.gif[/img]</STRONG><HR></BLOCKQUOTE>

Hacking是用Address range scan來找可用的宿主。浮動或固定IP都還是在固定的address range裡,一樣都逃不了。
頭像
the real unknown
冰果室打手
文章: 2610
註冊時間: 04/26/2001 1:01 am
來自: GMT-5
聯繫:

有沒有這樣功能的東西﹖

#9 文章 the real unknown »

頭像
Franky
留言五百如一日
文章: 684
註冊時間: 07/01/2001 1:01 am
來自: 香港特別行政區
聯繫:

有沒有這樣功能的東西﹖

#10 文章 Franky »

我之前試過用IPreporter,但個人感覺好像不太穩定。
[img]images/smiles/icon_razz.gif[/img]
留言五百如一日
文章: 610
註冊時間: 12/25/2001 1:01 am

有沒有這樣功能的東西﹖

#11 文章 »

Franky,

Assumed you're already on-line, there's an IP address, using Mac OS X, you should have 2 free applications: Internet Connect & Mail.

So, the applescript solution is here:

--- script start ---

-- it's my email address, change it to yours
set mAdd to "cherish@mac.com"

property IPadd : "0.0.0.0"

-- 56K dail up
-- the last 5th paragraph is the local IP address
-- your log maybe different
tell application "Internet Connect"
launch
set icLog to log
quit
end tell

if IPadd ≠ (word -1 of paragraph -5 of icLog) then
set IPadd to (word -1 of paragraph -5 of icLog)

tell application "Mail"
launch
-- keep the following code in one line
set IPmail to make new compose message at beginning of every compose
message
-- keep the above code in one line
tell IPmail
-- keep the following code in one line
make new to recipient at beginning of to recipients with properties {address:mAdd, display name:"bill"}
-- keep the above code in one line
set the subject to "The current IP is " & IPadd
end tell
make new message editor at beginning of every message editor
set the compose message of message editor 1 to IPmail
send IPmail
end tell
end if

--- script end ---

Brief explanation:
This script use internet Connect to find out the local IP address, compare the new one to the old value, if different, use Mail to send the changed IP address as email to you; if same IP address, nothing happens.

Try, if works, add the idle handler later.
If not works, mail me your Internet Connect log.
回覆文章