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 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.
Related
I got a question about Hyper-v VM capability. I have a Ubuntu VM and inside it, Im running a service locally. I am able to see it and use it within the VM browser. However, I want to be able to use within my host browser. Inside my VM session, I write localhost:8080 and I can access the platform of my program. However, when I try this in my host computer browser, I cant access it.
Is there a way to be able to access the platform using localhost:8080 within my host web browser?
Thanks in advance!
Did you try to type the IP address of your Ubuntu VM :8080 ?
like http://ubuntuVM:8080/ or https://192.168.1.22:8080 ? (replace with the correct address/name)
localhost is a loopback address, it redirects to 'self'
Good morning,
Today I tried to set up a Apache 2 server on Ubuntu 18.4 LTS, and yet while the localhost page works fine on my browser, it does not show the web page on any other devices. Why will it not display
(P.S. I am a beginner at networking, so if this is a dumb question, please just let me know
localhost always points to the "local machine". To access the Apache server from a second computer, you'll need to use the IP address for it.
For example, if the Apache server's IP is 192.168.123.456, you would use http://192.168.123.456 from the second computer. If you went to http://localhost on the second computer, it would be looking for a web server on that second computer.
I am running an Apache server (WAMP .- Windows / Apache / MySQL / PHP installation).
I am running a HTTP server for some development I am doing. This project involves comunicating with a HTTP server running Firebird.
Now, all is well until I try use the external IP address from a mobile device to access the server. Then it just times out.
I have correctly setup port-forwarding on the router and everything is accessible from ANY other computer. So the url goes something like this..
http://70.12.123/scriptToRun.php
To test this, I have connected from another computer on the LAN and it connects fine. I have used Teamviewer and connected from a computer NOT on the LAN. That also connects fine.
However, whenever I try to use the same url from a mobile device (phone) it just times out.
Anyone have any ideas why I cant connect using a mobile ?
Dave
Right now, I'm running my site on my Mac OS X locally via Apache.
I'm trying to reproduce a bug that only happen on iPhone Safari. I'm trying to avoid keep pushing the code to the staging server, pull, and then, test on my phone.
Is there a way to access my local site via my phone? via some kind of IP address?
make phone connect to the same WIFI as MAC OSX
run the server on the non-localhost address (LAN DHCP allocated), noted as SRV_IP
access the SRV_IP from your phone
I have create a website in php that runs on apache.
I have copied over the project folder to the www folder in WAMP and created an alias for it.
I have an active wifi connection but want to host the site from my laptop to be accessed on mobile devices. So I created a hotspot using the following command in Admin CMD:
netsh wlan set hostednetwork mode=allow ssid=NetworkName key=NetPassword
netsh wlan start hostednetwork
This creates a Microsoft Hosted Network Virtual Adapter. In adapter settings, I went to properties on my Wifi connection and allowed the created hotspot to have internet access.
My phone is now connected to the created network, however, when I try to access the website, Chrome on my device says that the web page is not available.
I used mypcname:8080/alias/ to connect to the website.
What could I be doing wrong and how can I fix this?
Thanks
have you tried adding http:// to the front, as your webserver is not on the http default port you need to tell the browser what protocol to use