Go Back   Android Forums > Android Phones > HTC Desire HD > Desire HD - Support and Troubleshooting

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old July 4th, 2011, 06:48 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: May 2010
Posts: 10
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default find host name

Hello, i wish to assign a static IP to phone using my router, but i need the host name of phone to be able to do this, trouble is can't find out what the host name for phone is?

any ideas?

cheers

carpman is offline  
Reply With Quote
sponsored links
Old July 4th, 2011, 07:24 AM   #2 (permalink)
turbo drinker
 
D-U-R-X's Avatar
 
Join Date: Apr 2011
Location: Sheffield, South Yorkshire
Posts: 16,408
 
Device(s): Nexus 4 (Stock, rooted, 4.4.2), Nexus 7 1st Gen (Stock, rooted, 4.4.2)
Carrier: Orange

Thanks: 10,316
Thanked 6,673 Times in 4,122 Posts
Thumbs up

Quote:
Originally Posted by carpman View Post
Hello, i wish to assign a static IP to phone using my router, but i need the host name of phone to be able to do this, trouble is can't find out what the host name for phone is?

any ideas?

cheers
Carpman - this is how to get a static IP address for your phone:

Quote:
Originally Posted by El Presidente View Post
First up, connect to your desired network.

Settings -> Wireless & Networks -> WiFi Settings -> Menu (the button at the bottom of the handset) -> Advanced Settings -> Tick the box which says "Use Static IP".

You'll then need to enter the options specific to that network.

The screen should look like this -



If you're connected to a network, the IP address you're currently using will already be displayed (as it is in the top of the picture), enter that into the IP address pull down.

Your gateway will be the internal IP address of your networks router. You can get this by accessing a PC, going to the start menu, typing CMD and pressing enter. In the DOS window which opens, type ipconfig and press enter. You'll see a load of info displayed, you're looking for something called Default Gateway, take a note of that then enter it into Gateway section on the phone.

Netmask will always be 255.255.255.0

I think you can leave DNS blank as DNS should be handled by the default gateway.

The above may or may not fix the issue, but give it a shot and report back either way.
If you find this info helpful, click thanks on El Presidente's original (4 or 5 down in the following thread) desire hd wifi problem
__________________
See something that needs Mod attention? Hit and let us know
Free online storage @ Dropbox - use my link & we both get 500MB extra (when you install Dropbox)
D-U-R-X is online now  
Reply With Quote
Old July 4th, 2011, 07:51 AM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: May 2010
Posts: 10
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for reply.

I know how to setup a static via the phone, but this is of no use if you use different wireless connections which i do.

I have also used Wifi-Static app to assign a static IP for my home network, but this can be unreliable.

I have the ability to assign static IP to network device via mac address and hostname, i do this for my laptops fine.

The questions still remains, how i find out what my phones host name is?

cheers
carpman is offline  
Reply With Quote
Old July 4th, 2011, 08:15 AM   #4 (permalink)
Beware The Milky Pirate!
 
El Presidente's Avatar
 
Join Date: Jan 2011
Location: Scotland
Posts: 26,596
 
Device(s): Xperia Z1, Nexus 7 3G, HTC One X, SGS3 Mini
Carrier: EE

Thanks: 14,027
Thanked 15,825 Times in 8,493 Posts
Default

Can you do it by MAC Address? All HTC Android devices have a MAC address beginning 90:21:55 (as far as I'm aware).

Which router do you have?
__________________
Site Rules & Guidelines / Staff List / Ask the Staff
Want to bring naughty posts to our attention? Use:
Be respectful to each other - That's what we're all about.
El Presidente is online now  
Reply With Quote
Old July 4th, 2011, 08:49 AM   #5 (permalink)
New Member
Thread Author (OP)
 
Join Date: May 2010
Posts: 10
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for reply,

nope i need both mac and hostname.

I am using Express Open Source Firewall Project for my firewall/router.
carpman is offline  
Reply With Quote
Old July 4th, 2011, 09:05 AM   #6 (permalink)
Beware The Milky Pirate!
 
El Presidente's Avatar
 
Join Date: Jan 2011
Location: Scotland
Posts: 26,596
 
Device(s): Xperia Z1, Nexus 7 3G, HTC One X, SGS3 Mini
Carrier: EE

Thanks: 14,027
Thanked 15,825 Times in 8,493 Posts
Default

I've had a look at how my router is configured and my phones name on the router is the same as the it's Bluetooth name. I can't remember whether or not it was like that by default, or whether I've changed it so I can easily recognise from the routers admin panel.

Via the router, can you see connected devices? Look for that MAC and see what the router is calling it.
El Presidente is online now  
Reply With Quote
Old July 4th, 2011, 09:47 AM   #7 (permalink)
Senior Member
 
Join Date: Oct 2010
Location: Sunny Cornwall
Posts: 1,294
 
Device(s): Desire HD ....
Carrier: Not Provided

Thanks: 12
Thanked 221 Times in 179 Posts
Default

See 2nd post in this thread ... community.smoothwall.org • View topic - [3.0] Allow only hosts with static DHCP entries ...

Dave
dvhttn is offline  
Reply With Quote
Old July 4th, 2011, 10:02 AM   #8 (permalink)
Junior Member
 
Join Date: May 2011
Location: Black Country, UK
Gender: Male
Posts: 70
 
Device(s): Sim Free HTC One. Sim Free HTC One X. HTC Flyer.
Carrier: O2

Thanks: 6
Thanked 18 Times in 15 Posts
Default

If your currently using DHCP, most routers will show the IP & hostname in a DHCP Client list. Mine usually comes up as ANDROID_454687354687.
What router are you using?
Fonzig is offline  
Reply With Quote
Old July 4th, 2011, 10:48 AM   #9 (permalink)
New Member
Thread Author (OP)
 
Join Date: May 2010
Posts: 10
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for replies.

I can find nowhere in smoothwall where it will show me the host name of desire?

In the dhcp section it does not, if i give the phone a static IP it does not show it static dns page.

This is odd as the commercial versio of smoothwall that is used in office will show dhcp clients details, but free version will not!



I have a rooted phone so is there any file on the phone from which i can get the host name?

cheers
carpman is offline  
Reply With Quote
Old July 4th, 2011, 10:54 AM   #10 (permalink)
New Member
Thread Author (OP)
 
Join Date: May 2010
Posts: 10
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

seems free version of smoothwall does not show dhcp leases

Express Open Source Firewall Project Feature Comparison Chart
carpman is offline  
Reply With Quote
sponsored links
Old July 4th, 2011, 11:07 AM   #11 (permalink)
New Member
Thread Author (OP)
 
Join Date: May 2010
Posts: 10
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your replies they put me on the right track and have no installe smoothwall mod to show dhcp leases

community.smoothwall.org • View topic - [3.0] Modded DHCP.CGI (WOL, lease table, state, and prefs)
carpman is offline  
Reply With Quote
Old July 5th, 2011, 05:20 AM   #12 (permalink)
Member
 
Join Date: Nov 2010
Location: Coventry, UK
Posts: 285
 
Device(s): HTC Desire HD
Carrier: Not Provided

Thanks: 6
Thanked 31 Times in 23 Posts
Default

As Fonzig said, the host name will start ANDROID_...

My router gave me a list of Hosts, IP's and MAC's and lists ANDROID_...

What I can't find is this name written on the phone anywhere
sonesh is offline  
Reply With Quote
Old November 5th, 2012, 10:28 AM   #13 (permalink)
New Member
 
Join Date: Nov 2012
Location: UK
Gender: Male
Posts: 1
 
Device(s): HTC Desire (x4) Asus Transformer Prime
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Android phones appear to use IMEI in hostname

Quote:
Originally Posted by sonesh View Post
As Fonzig said, the host name will start ANDROID_...

My router gave me a list of Hosts, IP's and MAC's and lists ANDROID_...

What I can't find is this name written on the phone anywhere
On my HTC desire, the 15 digits in the hostname following "Android_" equates to the unique IMEI of the phone's cellular radio. The global GSM standard requires that this number is printed on the device but can also be found as follows:

1. In the phone app, press *#06# and the IMEI should appear in a popup window (not sure if this works for CDMA)
2. In Android, go to Settings / About Phone / Phone Identity / IMEI

What I'm also unsure of is how non-cellular Android devices generate their hostname as my tablet is using a hexadecimal sequence that doesn't look like the MAC address or the device Serial Number.
GMARKppt is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Phones > HTC Desire HD > Desire HD - Support and Troubleshooting
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 01:36 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.