Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to communicate between computer and smartphone over wifi

First, my goal is to access from chrome on my HTC one X, to my local server on my laptop. The local server works (wamp), and runs from 127.0.0.1.

I can't depend on outer network, thus I want to create a local wifi network.

Currently I turned on Wi-Fi Hotspot on my phone. The laptop successfully connected to the network, and phone actually recognized it.

The IP of the laptop is 192.168.1.150 (I found this both from the laptop and the phone).

My problem is that in the computer, when I try to access 192.168.1.150:80 I get 403 Forbidden, and I get nothing on my phone (I even tried to send packets with no success).

like image 342
Shay Ben Moshe Avatar asked Jan 24 '26 15:01

Shay Ben Moshe


1 Answers

Finally found the solution!

http://www.mobitechie.com/android-2/how-to-access-localhost-on-android-over-wifi/

This tutorial explained each and every problem I had (how to fix 403 error and open the relevant port in the firewall).

like image 87
Shay Ben Moshe Avatar answered Jan 26 '26 07:01

Shay Ben Moshe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!