The problem is, essentially with the IP. It will work for google with the said code but when I try my website it doesn't work. I get the ip address and try changing the code to this:
It returns website not found, for both methods using my website. The samething happens when I try to access my website using the ip address in an internet browser, but works fine with I enter the domain. I must be missing something, any thoughts on what I'm doing wrong?
I simple want to get a web page, which is just some simple php code that echoes 0 or 1 depending on the inputed information.
It will work for google ... when I try my website it doesn't work.
It returns website not found ... using my website. The samething happens when I try to access my website using the ip address in an internet browser, but works fine with I enter the domain.
You haven't said what exactly works, what doesn't work.
Sounds like a reverse DNS issue to me. If you're experiencing the same problems with your browser as well as your app - it's not your app that's the problem.
I suggest you contact your domain name provider and/or your host provider.