How to access localhost websites through http request from blackberry simulator?
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 a开发者_Go百科ny 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
always points to the machine on which the DNS resolution is performed. In your case that would be the BlackBerry simulator.
To get the simulator to send HTTP request to your dev machine, you need to specify the DNS name or the IP address of that machine. The exact name depends on what your the network configuration of the simulator and your local network is.
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.
精彩评论