Teaonly / android-eye

Change your android phone to surveillance camera
Other
1.08k stars 492 forks source link

cant stream video #14

Open sebadamus opened 10 years ago

sebadamus commented 10 years ago

Justo installed, no firewall on my phone, it tells me to open on http://30.0.0.101:8080 (this is my network) but when I open it on another pc or on my cellphone (where I installed WiFi camera) it keeps searching but nothing shows :(

dev-jonghoonpark commented 10 years ago

I changed getLocalIpAddress(), and it worked

public String getLocalIpAddress() {
WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE); WifiInfo wifiInfo = wifiManager.getConnectionInfo(); int ipAddress = wifiInfo.getIpAddress(); String sIp = String.format("%d.%d.%d.%d", (ipAddress & 0xff), (ipAddress >> 8 & 0xff), (ipAddress >> 16 & 0xff), (ipAddress >> 24 & 0xff)); return sIp; }

rishisanju commented 10 years ago

some bdy plz mail me the complete code in zip format m unable to run it. whenever i tried to run it,it shows some msg n unfortuntly closes

rishisanju commented 10 years ago

maa email id sonirish@gmail.com