Monday, 15 March 2010

How do I change hostname on Android? (and reachable by a ping?) -


I need to change the hostname of my tablet in my Android application. I think the idea of ​​"ping me-tablet" Have to work properly. To accomplish this, I have given the following commands (programmatic) through ADB:

  su setprop net.hostname & lt; New_hostname & gt;  

When I give it:

  getprop net.hostname  

However, the change was not notified on the network So ... if I ping the device, then nothing works.

I have seen this resource: but I'm not sure that it solves the problem.

Solution (such as manually editing the host file, though I should do it for every connected device ... or change the router directly that I can not do all the time), but this It does not seem possible.

Any thoughts? Thanks :)


No comments:

Post a Comment