如何通过黑莓模拟器的http请求访问localhost网站?(How to access localhost websites through http request from blackberry

系统教程 行业动态 更新时间:2024-06-14 16:58:30
如何通过黑莓模拟器的http请求访问localhost网站?(How to access localhost websites through http request from blackberry simulator?)

我正在开发一个黑莓应用程序,我想从我的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.

更多推荐

本文发布于:2023-04-15 03:40:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/b7f3a04adc2813fb658afdd8405e7711.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模拟器   黑莓   网站   http   blackberry

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!