Gorilla-Player-Support icon indicating copy to clipboard operation
Gorilla-Player-Support copied to clipboard

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

Open muhaym opened this issue 9 years ago • 38 comments

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

screenshot

muhaym avatar Jan 26 '16 19:01 muhaym

Hi @muhaym thanks for helping us!

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

  • Are you using Visual Studio emulator for Android ?
  • Did you try on a different emulator?
  • Are you on the same network than the device? -if not it will fail-.

Thanks again! JP

jpbrocca avatar Jan 26 '16 22:01 jpbrocca

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.

  • I think the issue is here, Gorilla Desktop Software is not listening to WIndows Phone EMulator internal switch, and Realtek PCIe GBE Family Controller Virtual Switch, and it listens to all other IP, so that Visual Studio emulator cannot access none of the IP's listened by Gorilla Player Server.

muhaym avatar Feb 13 '16 10:02 muhaym

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.

LeoHere avatar Feb 13 '16 13:02 LeoHere

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.

muhaym avatar Feb 13 '16 14:02 muhaym

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

jpbrocca avatar Feb 13 '16 15:02 jpbrocca

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

muhaym avatar Feb 13 '16 17:02 muhaym

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 ?

LeoHere avatar Feb 14 '16 09:02 LeoHere

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

muhaym avatar Feb 14 '16 10:02 muhaym

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

LeoHere avatar Feb 14 '16 11:02 LeoHere

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

muhaym avatar Feb 14 '16 13:02 muhaym

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

supreettare avatar Apr 11 '16 07:04 supreettare

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

supreettare avatar Apr 11 '16 07:04 supreettare

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.

msmrajesh avatar Apr 28 '16 13:04 msmrajesh

@muhaym : Have you tried to disable firewall?

adriangh83 avatar May 12 '16 13:05 adriangh83

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

msmrajesh avatar May 12 '16 16:05 msmrajesh

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

  • are you using the same network to connect?
  • do you have a firewall and even if you turn it off you still cannot connect?
  • can you navigate through your browser to Http://localhost:9014?

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

Best, JP

jpbrocca avatar May 12 '16 16:05 jpbrocca

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.

msmrajesh avatar May 13 '16 11:05 msmrajesh

Hi @msmrajesh,

Real Device:

  • Please open the browser inside the device and go to http://<server ip>:9014/ Can you see the about page from the device? If not, please turn off your firewall and try again.
  • Can you give me more details about how both devices are connected to the network? Desktop is wired and device is in the wifi, are both in the wifi?
  • Go to http://localhost:9014 from your desktop machine. When you tried with manual setup, did you tried with all the IP addresses listed under "Listening to addresses" (specifying <ip>:9014 in the manual configuration page) and non of them work?

Simulator:

  • Did you tried running the Player from the simulator? Does it work for you?

LeoHere avatar May 14 '16 11:05 LeoHere

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.

msmrajesh avatar May 16 '16 10:05 msmrajesh

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?

LeoHere avatar May 17 '16 10:05 LeoHere

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

Jesperb21 avatar May 17 '16 13:05 Jesperb21

gorilla_about gorilla_manual gorilla_autodiscover

i use both machine name and ip address.

Wondering how Jesperb21 is able to use his physical device.

msmrajesh avatar May 17 '16 13:05 msmrajesh

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

Jesperb21 avatar May 17 '16 13:05 Jesperb21

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

mestrevieira avatar Jun 01 '16 17:06 mestrevieira

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

15mgm15 avatar Jun 20 '16 15:06 15mgm15

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

msmrajesh avatar Jun 21 '16 11:06 msmrajesh

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

escamoteur avatar Jun 21 '16 11:06 escamoteur

@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 avatar Jun 21 '16 16:06 LeoHere

@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

LeoHere avatar Jun 21 '16 16:06 LeoHere

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?

akamud avatar Jun 28 '16 14:06 akamud