Wednesday, August 20, 2008

set etc/host บน windows mobile

เวลาเขียนโปรแกรม ถ้ายังไม่มี hostname จะตั้งเองได้ที่ etc/host ใช่ปะ
บน windows mobile ก็เช่นกัน ทำได้ ใน emulator ก็ทำได้ แต่ต้องลงโปรแกรม edit registry
ที่ชื่อว่า PHM Registry Editor

Download จากที่นี่ http://www.phm.lu/Products/PocketPC/RegEdit/

ที่เราต้องทำคือ ไปที่
HKEY_LOCAL_MANCHINE -> Comm -> Tcpip -> Hosts

ถ้ายังไม่มี Hosts ก็ New Key ขึ้นมาเลย

แล้วใส่ค่า
new key [aek.------.beta] with following value items
[ExpireTime (99 99 99 99 99 99 99) (REG_BINARY)]
[ipaddr (C0 A8 01 7E) (REG_BINARY)] <<= ip = 192.168.1.126

(>_o) จำไว้ๆ

No comments: