06/17/2009, 02:02 PM
|
#1 (permalink) |
|
Member
![]() |
This is probably simple, but is there a way to assign a friendly host name (computer name) to the pre so I can use that to access it instead of an ip address? Having to figure out the IP that got assigned to the pre on each wireless network you connect to is a huge pain.
Thanks! |
06/17/2009, 03:28 PM
|
#2 (permalink) |
|
Member
![]() |
Bam! Kazam! here you go!
pre dev wiki: Update DNS hostname from Sprint IP Now keep in mind this is for EVDO access only... local access will still get assigned a local IP address.
__________________
<I accidentally the whole pre> <Palm Pre Speed Test>
|
06/17/2009, 10:58 PM
|
#6 (permalink) |
|
Member
![]() |
If you're connecting from a computer to your Pre, your computer, NOT the Pre, is responsible for mapping names into IP addresses. (Your Pre is acting as an SSH/whatever server here, and your computer is the SSH/whatever client).
If your computer is running Linux or Mac or any other OS with an /etc/hosts file, you can add an entry in this so that you can use a "normal" name that gets manually resolved to your Pre's IP address. There may be a way to do this on Windows, but I don't know it. |
06/18/2009, 01:12 AM
|
#7 (permalink) | |
|
Member
![]() |
Quote:
|
|
06/18/2009, 01:20 AM
|
#8 (permalink) |
|
Member
![]() |
This is because you're on your own network and DHCP and DNS are working together on your wifi router and is assigning you a domain name (*different* from your hostname)
On a network you don't control, you can't change the DNS entries yourself, or you may not ever be given a DNS name, or you may never know the network's DNS name, etc. Your pre's hostname is "castle", maybe you can try pinging castle without a domain name and seeing if that would work, provided DHCP is setting you with a search domain when you log on to that network. |
01/20/2010, 04:46 PM
|
#9 (permalink) |
|
Member
![]()
Posts: 37
|
I also have a wish for this - does anybody know how to be sure the pre reports a host name when obtaining IP over DHCP with Wifi? In my case I would like this so that when I look from my router what all the connected wi-fi devices I will know which one is the pre instead of having to recall the MAC address.
My router is basic so it does not provide DNS options or internal MAC alias naming either. It 'should' come from the NAME entry under Device Information on the Pre, but I even changed that to a simple name without spaces thinking that would help. Last edited by natsteff; 01/20/2010 at 05:03 PM. |
01/22/2010, 01:15 AM
|
#10 (permalink) | |
|
Member
![]() |
Quote:
|
|
05/31/2010, 07:37 AM
|
#11 (permalink) |
|
Member
![]()
Posts: 28
|
I have managed this with wi-fi networks. i.e. when I enable wi-fi on my palm and connect to a known wi-fi network, once the palm is connected, on another computer I can ping my palm using "ping palm-webos-device" and ssh into it with "root@palm-webos-device". (My v1.4.1.1 Palm Pre has a hostname of "palm-webos-device", not "castle".) How did I do this: I followed the advice on (because of the dumb restriction on posting links I have to baffle the silly system) https : // calomel . org / dhclient . html, with my own additions. Note that this only works on suitably configured DHCP-based networks with suitably configured computers on the network.)
1. Set your root parition on your palm pre to read-write. 2. Backup then edit the file "/etc/PmWiFiDhclient.conf", adding the lines, in the following order: send host-name "palm-webos-device"; supersede host-name "palm-webos-device"; request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, host-name; 3. Save the file, and reset the root partition to read-only. 4. Reboot your palm pre (the only way I quickly found to restart the dhclient process on the palm pre, probably other ways, but couldn't be bothered to find out). Now, using a hostname other than "palm-webos-device" would require editing more files, at least "/etc/hostname" and probably others, which I didn't do. Once this was done, I installed ssh and the sftp server, and even, on Ubuntu, managed to browse the palm pre's filesystem from another computer on the same-wifi network. Note that if the palm pre goes to sleep, despite keeping the wifi on whilst asleep, an ssh link to the palm does seem to not respond, which recovers once the palm is awake. |
02/07/2011, 09:37 AM
|
#13 (permalink) |
|
Member
Posts: 360
|
If your dhcp server supports a pseudo-static address, then it's much easier than that.
1) Have your dhcp server provide the same address each time it get's a dhcp request for the palm. 2) Add it to /etc/hosts on every machine you want to connect from or: 3) If you have a domain name server, add it to it's table. This technique makes it easy to have multiple phones, and other devices identified by name on your LAN. Specifically, on my OpenSolaris server: 1) Use dhcpmgr to add a static IP address for the Palm's MAC address. 2) Add it to my tinydns service. With this I can ssh to the device by name from any machine on my internal network.
__________________
Palm III->Palm IV->Palm V->M130->Tungsten->Treo 270->Treo 600->Treo 700->Palm Pre Plus->FrankenPre 2->Pre 3 & TouchPad |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



