UXDivers / Gorilla-Player-Support

This is the public Gorilla Player support website
http://gorillaplayer.com
115 stars 17 forks source link

Cannot get Gorilla Player App connected to Server in Visual Studio Android Emulator #26

Open muhaym opened 8 years ago

muhaym commented 8 years ago

Auto Discover or Manual Setup with http://locaolhost:8080/ doesn't work. Version tried 0.8.2 and 0.8.1

screenshot

jpbrocca commented 8 years ago

Hi @muhaym thanks for helping us!

Just a couple of questions to try to find the reason behind this bug:

Thanks again! JP

muhaym commented 8 years ago

Hi, Sorry for being late. -I am using Visual Studio emulator for Android -I tried GenyMotion and Xamarin Android Player, it works in both, but getting it running parallel with Visual Studio emulator for android (hyper v vs virtual box), messes my network adapters and all. I prefer to use Hyper V Visual Studio emulator as it doesn't conflict with my windows phone emulators.

LeoHere commented 8 years ago

Hi,

Please install the last version of Gorilla and then, in your browser go to "http://localhost:". If you didn't explicitly set the port in the config.json, port should be 9014. Otherwise is the port specified in the config.json.

You will see an about page with some useful information, including the list of the address where Gorilla is listening. Please send a screenshot of that.

muhaym commented 8 years ago

I'm using latest Version 0.8.2

localhost I didn't set the port manually, it is 8080 by default, accessing using localhost:8080 emulator this are the network cards for emulator. I am able to access internet from emulator, but not localhost.

jpbrocca commented 8 years ago

Hi @muhaym Could you please uninstall and install latest version (0.8.2.2) from here:

https://github.com/UXDivers/Gorilla-Player-Support-And-Issues/releases/tag/v0.8.2

Best, JP

muhaym commented 8 years ago

Updated, still can't get to connect server from emulator new

LeoHere commented 8 years ago

You should not use localhost: when you are doing manual setup, since localhost will resolve to the actual device (virtual phone) IP, meanwhile Gorilla is on the host computer. Did you try doing manual setup specifying the IP address? like 192.168.1.35:9014 ?

muhaym commented 8 years ago

I tried manual setup, It is giving Could not connect to the server (is it down?). Retrying

LeoHere commented 8 years ago

Ok. Can you see the About Page from the browser within the emulator? Again you will need to use the ":" to reach Gorilla. Did you tested just with 192.168.1.35 or did you also tested with other IP addresses listed in the About Page (e.g. 169.254.161.156)?

muhaym commented 8 years ago

Tried all Ip from browser with port.. No luck :(

supreettare commented 8 years ago

same issue. Same setup. It worked for a while but not working any more.

supreettare commented 8 years ago

the only diff is my version for player sdk is Server: 0.8.3.0

msmrajesh commented 8 years ago

Hi, I joined the beta preview since I am working with Visual Studio 2015 and badly need to preview the layout during design with the Xamarin plug in. I have installed Gorilla on the desktop as well as on the Android device (real device). The Gorilla server runs fine but I am always getting a time out error when trying to connect the device to the Gorilla Server. I tried both automatic as well as manual mode and even put the ip address with the port but still unable to find out why the device is not able to view the server.

Can you provide any insights how to fix this issue.

Thanks,

Rajesh.

adriangh83 commented 8 years ago

@muhaym : Have you tried to disable firewall?

msmrajesh commented 8 years ago

Any solution. it is frustrating not being able to use Gorilla to preview the xaml during design time.

jpbrocca commented 8 years ago

Hi @msmrajesh, sorry about that. Just a couple of questions to help us try to find the problem and help you more:

Thanks and I apologize again for any issue this could be causing you.

Best, JP

msmrajesh commented 8 years ago

Hi @jpbrocca

Yes I am using the same network to connect. I have enabled WIFI on the mobile and I can run the application from Visual Studio when connected through USB.

I have turned the firewall off but still no effect.

Yes the server is accessible from the desktop browser through Http://localhost:9014

And I tried using both Auto detection as well as manual set up but no effect.

LeoHere commented 8 years ago

Hi @msmrajesh,

Real Device:

Simulator:

msmrajesh commented 8 years ago

When trying to access the Gorilla Server http://:9014/ via a browser on the mobile device it times out and says cannot find the address. And on the about box in Gorilla on the desktop it shows the machine name instead of the ip address. even i tried to add that entry in lmhosts file but still the device cannot connect to the server.

The device is connected to the desktop via USB and WIFI is also enabled on the device.

Yes I tried using manual configuration but still no result. Can you please let me know how to make the device part of the same network so that the device can listen to the server ip address.

And since the emulator requires a Hyper-V enabled processor which i do not have, i am unable to use a emulator from Visual Studio.

LeoHere commented 8 years ago

Can you attach a screenshot with About Page seen from the desktop?

In order to diagnose the problem, please disconnect the device from the USB port and just leave it connected to the wifi. When you said http://:9014/, what is the exact address you used to test? Did you use ip address or server name? Which is the IP or IP(s) associated (use 'ipconfig /all' in the command line) to your desktop machine? did you tested all of them through manual setup?

Jesperb21 commented 8 years ago

https://gyazo.com/7566e15a6b155255f30d0453535e63bf also tried all sorts of combinations of ip & ports, different android emulators, etc etc, as long as they're powered by the Visual Studio Android Emulator it will not connect, physical device works like a charm though :)

msmrajesh commented 8 years ago

gorilla_about gorilla_manual gorilla_autodiscover

i use both machine name and ip address.

Wondering how Jesperb21 is able to use his physical device.

Jesperb21 commented 8 years ago

deploy the player app to your physical device -> connect to wifi -> run server on pc -> connect it all up, done?

mestrevieira commented 8 years ago

Had the same problem - connectivity issues in Gorilla Player but working in browser. I then found out that Gorilla Player app needed some permission in android project - INTERNET. Hope this helps someone.

  1. Select Player.Droid Project > Options > Android Application > Required Permissions
  2. Check: AccessNetworkState and Internet > OK
  3. Redeploy App to device

image

15mgm15 commented 8 years ago

Hello I am trying to set up Gorilla player on a fresh new XF forms project and I am getting this error:

Error occurred while setting Gorilla Target XAML. File LocalNotificationsExamplePage.xaml (Can´t locate the target xaml within the project).

I am using a Mac and Xamarin Studio and my Gorilla Player is saying that I am connected.

simulator screen shot jun 20 2016 10 01 51 am

screen shot 2016-06-20 at 10 01 59 am
msmrajesh commented 8 years ago

Hi, I downloaded Gorilla 0.9.1.2 on another desktop in another location and it has no issue in connecting to the Gorilla server from the device. However I am getting a black background for all the screens in spite of changing the theme.

To change the theme i used this in MainActivity.cs

[Activity(Theme = "@android:style/Theme.Holo.Light", Label = "Expense Manager", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]

When running on the device I am getting the desired output. You can see the difference in the two attachments. Why does this happen. Is there any work around to get the same look and feel in Gorilla as well as the device.

Thanks, Rajesh

fromdevice fromgorilla

escamoteur commented 8 years ago

I'm having the same problem getting a connection from VS Android Emulator to my local machine running Gorilla server. It works great from a physical device. I guess it has something to do with the network configuration of the Emulator. If you have any advice this would be great. Then I could display Android and the new VS iOS Emulator side by side on the screen

LeoHere commented 8 years ago

@15mgm15 please, it would be useful to get your log files in order to diagnose what is going on.

It would be even more useful if you can set the log level to debug and try this again, so I get more info.

See this article explaining where the logs are and how to configure them in debug mode.

LeoHere commented 8 years ago

@msmrajesh can you please post the issue you mentioned as a separate issue, since it does not seems to be related to the issue being discussed in this thread. Thanks

akamud commented 8 years ago

Is this still an issue? Any workarounds? Gorilla Player never connects with my emulator from VS either.

How can I provide more info to help address this?

jpbrocca commented 8 years ago

Hi @akamud,

please provide your log files (more info here).

Thanks, JP

akamud commented 8 years ago

After I enabled debug logging it started working. If I run into this issue again I'll post the log file here.

LeoHere commented 8 years ago

Hi @akamud, can you please post your logs here or send me an email with them to l r o d r i g u e z at u x d i v e r s . c o m? I want to check if there is any clue of the issue you experienced there. Thanks

npagare commented 6 years ago

Hi @LeoHere, I am new to using Gorilla Player in Visual studio 2017 15.5 (GA).

I have not been successful in deploying -

  1. Gorilla player to the android emulator running inside Visual Studio. Compilation and deployment of the player.droid gets hung... I kept my studio open for couple of hours and even then the deployment wasn't complete.
  2. Installed Gorilla Player on my android device (connected on the same wifi as used by my surface book and keep getting connection timeout error.

Can you please help me in getting this addressed ? I would appreciate your help.

Thanks, gorillaplayertimeout-screenshot_20171208-095521

npagare commented 6 years ago

Hi @LeoHere , finally I could figure out the issue. In my home network - as long as I am using the same wireless SSID on my PC and the physical Android device that is broadcasted by my main internet (provider's) wireless router, the connectivity works just fine. I used info from the Gorilla wiki page - https://github.com/UXDivers/Gorilla-Player-Support/wiki/Troubleshooting-Connectivity. But this wiki page needs to be updated with information on resolution to my issue mentioned below.

But, if my devices are using same SSID broadcasted by other routers in the same network then the connectivity fails. That's kinda problematic in a way because wireless signal from my main router is not strong enough to work on the other end of the home.

Any thoughts on this? If so, what's the required configuration to make it work on SSIDs broadcasted by other routers?

Thanks,

daybson commented 6 years ago

Just installed version 1.2.0.6 and nothing works either.

yoandresaav commented 6 years ago

This work for mi

netsh advfirewall firewall add rule name="Gorilla Player" dir=in action=allow protocol=TCP localport=9014 netsh advfirewall firewall add rule name="Gorilla Player" dir=out action=allow protocol=TCP localport=9014

netsh advfirewall firewall add rule name="Gorilla Auto-discovery" dir=in action=allow protocol=UDP localport=14578
netsh advfirewall firewall add rule name="Gorilla Auto-discovery" dir=out action=allow protocol=UDP localport=14578

R0Wi commented 5 years ago

Hi guys,

i had a similar issue. I'm using Visual Studio 2017 on a windows 10 host and i was able to connect to Gorilla-Player via my native android device (which was in the same network as my development computer). But when i started one of my android emulators, the app starts to run but wasn't able to find the Gorilla-Player-Host running on my computer (via autodiscovery and via typing local ip directly).

The solution for me was to manually type in the ip-adress of my computer as "10.0.2.2:9014". This did the trick because android emulator uses his own virtual router to connect the emulator to the host machine. According to the documentation here the ip "10.0.2.2" stands for the host machine of the emulator (so in my case it was the development machine running Gorilla-Host). I was then able to connect to the server but the screen still stuck on saying "...connecting for initial handshake...". In my case this could be fixed by deleting the log files under "C:\Users\.gorilla\logs".