Jump to content

HTC Desire hostname


Recommended Posts

Guest Amit Manor
Posted

hi,

is there an option to rename my device hostname?

right now it's something generic: android_f12fc6122a7945df

is there a way to change that?

10x in advanced,

Amit.

Posted (edited)
hi,

is there an option to rename my device hostname?

right now it's something generic: android_f12fc6122a7945df

is there a way to change that?

10x in advanced,

Amit.

you can put the name in a file /system/etc/HOSTNAME

and then put the line

127.0.1.1 yourhostname

in /system/etc/hosts

write in an initscript the line

hostname -F /system/etc/HOSTNAME

so its called at boot

this will only be internal on your phone, not in your (w)lan

Edited by woti17
Guest Amit Manor
Posted

thanks for the tip.

i'm kindda new to android :-)

i read on the net that maybe it could be done using dhcpcd

i just don't know how to write the full command on adb shell.

perhaps you know?

Posted (edited)
thanks for the tip.

i'm kindda new to android :-)

i read on the net that maybe it could be done using dhcpcd

i just don't know how to write the full command on adb shell.

perhaps you know?

you would look in /system/etc/dhcpcd/dhcpcd.conf

and also modify

/system/etc/dhcpcd/dhcpcd-hooks/*

if the dhcp server is even configured to send a host name

and then you would have to get the name into something useful like hosts or HOSTNAME

just guessing

Edited by woti17
Guest Amit Manor
Posted (edited)

ok,.. i've reading some more :-)

there's this property called net.hostname

on adb shell, or using terminal i write 'setprop net.hostname blahblah' it sets the right name for me

however, when i reboot the device it returns to the original setting.

is there a way you know of where i can set this property permanently?

Edited by Amit Manor

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.