我正在开发一个黑莓应用程序,我想从我的localhost(本地机器)访问这些网站。 我正在黑莓模拟器8350上运行该应用程序。
从我的代码我可以浏览从互联网请求任何网站,我得到了回复。
当我试图将url作为localhost:8080 / portal / index.php时,它显示一条错误消息
HTTP错误404说明请求的资源(/portal/index.php)不可用。
我通过Windows在端口8080上运行我的apache webserver。
如何从黑莓模拟器访问我的本地机器网站?
请帮助和指导我。 谢谢SIA
I am developing a blackberry application and i wanted to access the websites from my localhost( local machine). I am running the application on blackberry simulator 8350.
From my code i can browse request any website from internet and i am getting the response.
When i am trying to give the url as localhost:8080/portal/index.php, its displaying me a erro message
HTTP Error 404 description The requested resource (/portal/index.php) is not available.
I am running my apache webserver on port 8080 over windows.
How can i access my local machine website from blackberry simulator?
Please help and guide me. Thanks SIA
最满意答案
localhost始终指向执行DNS解析的计算机。 在你的情况下,这将是黑莓模拟器。
要使模拟器向您的开发机器发送HTTP请求,您需要指定该机器的DNS名称或IP地址。 确切的名称取决于您的模拟器和本地网络的网络配置。
The problem is solved.
On My local machine i was running apache on port 8080 and MDS Service was running and binding on the same port.
Simply by changing the port for Apache on my local machine helped me to connect to my local machine and internet from Blackberry Simulator.
@Franci, thanks for your idea.
更多推荐
发布评论