If I use DNSMasq in my router to set a fake address to an ip, then the Android phone can find it no problem.
Example:
DNSMasq
address=/fake.notreal/192.168.1.112
On the Android phone using chrome to go to the address or ConnectBot to ping the address fake.notreal
works. It finds the correct server.
But if I use a real address, then it no longer works (I need this for testing of a website I'm developing). Example:
address=/mycompany.com/192.168.1.112
This address goes to the actual real server.
How to I make the android device listen to the router?
I was able to "fix" this by going into the Wi-Fi settings on the phone and:
At that point, it'll first ask your router and that'll return the local address.