Shay Ben-Moshe
Shay Ben-Moshe

Reputation: 1296

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).

Upvotes: 3

Views: 15197

Answers (1)

Shay Ben-Moshe
Shay Ben-Moshe

Reputation: 1296

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).

Upvotes: 5

Related Questions