I need to check my website on my android phone , i wonder how can i connect it through localhost. need help please.
I'm using SQL Server as database engine.
If it's connected to your wifi, then hit your laptop address provided by the router. If it's connected to your mobile network, then first find out your router external IP address, then forward some port to that 10.0.2.2:portno and finally you'll be able to see that server from your device.
Related
I have a Web API Project hosted on my local system (Windows 7) on IIS7.
I am trying to access that Web API or for that matter another website hosted on the same IIS via my android mobile phone and My Mobile phone is connected to local wifi. But this IIS computer is connected to same network via wired LAN. Though I can access my router that is hosted on "xxx.xxx.1.1" IP Address from that computer as well as mobile phone but i am unable to access the IIS website from my mobile phone.
I tried turning off my windows firewall on the IIS computer where this website is running, but this didn't help as well. Although i can access this IIS website via another computer on the same LAN.
I think the issue is related to LAN or wifi but it should not be as the network and router for LAN and wifi are the same.
Need immediate help and how can i solve this.
Thanks
Can you ping your phone from your computer? Or vice-versa?
Access your router configuration and check for any access control setting that might be separating WiFi from LAN.
OK. When it was extremely urgent today, i found the answer myself. It was D link Router problem and here is the solution. Hope this helps others.
Check option Clients isolation in Wireless -> Basic.
If it turned ON - clients from LAN wil not access Wi-Fi clients and vice versa.
My problem is linked with this post : https://stackoverflow.com/questions/28982225/android-local-server-access-over-wifi/
I have a website hosted with MAMP on a Mac mini, connected to a D-Link router. I've got a Wifi-antenna (ubiquiti) which is connected to this router too, it creates a Wifi (offline) LAN.
When I try to connect to the Mac mini's IP, it displays the website from other devices (iPhone, Windows PC) but with Android it doesn't work.
I'd like to know how the developper in the link I refered did "use DNS by redirecting all domains to his custom domain".
Or if there is another way to work around this... Client devices which connects to the Wifi network shoudn't (I wish) have to configure manually their Android network parameters...
EDIT:
ngrok.io is not a solution :
clients may not have an 3G/LTE connection on their phones
the adress / IP should be the same every time the Mac reboot
Thanks in advance
I have a web server running on a mac laptop. This laptop is connected to the network by my android smartphone (which receives the network by mobile operator). I would like to make visible my web server from outside, so I installed a port fowarding application on my smarthone and associated its port 8080 to the port of my laptop 80.
Then I found the IP address of my mobile device by the site http://whatismyipaddress.com/ and I tried to connect by using as URL mobile.ip:8080. The connaction failed. So could anybody tell me where I am wrong?
Thanks in advance for your help
I'm trying to access localhost from my android device. I've tried 192.168.1.5:80 (which is my localhost ip address in my laptop). Both my android device and my laptop are on same gateway.
Can anyone tell me what i've done wrong or is there any firewall that is blocking my localhost from being accessed?
Help me out guys. Thank you in advance.!!
USB doesn't provide network to mobile device. If it's connected to your wifi, then hit your laptop address provided by the router. If it's connected to your mobile network, then first find out your router external IP address, then forward some port to that 10.0.2.2:portno and finally you'll be able to see that server from your device.
Edited:
I use my local ip for that i.e. 192.168.0.1 and it works.
and Let me know !
I am developing an android application in which i have to connect my android application with local host.I have done r and d,and implemented lots of codes.But didnot get success.Here is my code for establishing connection.Its showing in ddms connection to localhost refused
http://pastebin.com/wVmzdQvA
when i run the url on browser its opening.Dont know where actually the problem is
If anyone can guide me
Regards
Tushar
Your problem is simple when you think about it.
localhost on your laptop, and localhost on your android phone are not the same.
You are telling your phone to connect to phpmyadmin running on the phone... not on your laptop.
You need to have an external ip address for your laptop, and connect to this.
Try http://www.whatismyip.com or ifconfig to find out an ip address your phone can use to connect.
Lets say that within your local network you have the ip 192.168.1.14, then you should be able to connect by replacing 127.0.0.1 with 192.168.1.14.