Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Desktop not launching the Culebra GUI #10

Open
kselvaakumar opened this issue Feb 16, 2018 · 21 comments
Open

Windows Desktop not launching the Culebra GUI #10

kselvaakumar opened this issue Feb 16, 2018 · 21 comments

Comments

@kselvaakumar
Copy link

Hi, I have done the setup of Android studio, through which able to launch the emulator. Now, i have installed both Culebra tester and instrumentation in the emulator. with the address shown in the Culebra App, the url is not found in my windows desktop PC. can you please let know what i should do to get the Culeber GUI on my desktop PC?

@dtmilano
Copy link
Owner

Plase, take a look at Using emulator with Google Play support.

Don't hesitate to ask or comment here if it doesn't solve your problem.

@clahzita
Copy link

I can't open the main page in my desktop browser. I don't have sucess with any of the two address that is showed on the screen. In my case I'm using a physical device.

@dtmilano
Copy link
Owner

@clahzita can you describe the issue in greater detail?
Can you tell me the url you are trying to reach?
Can you successfully do adb shell to that device?

@wntdt
Copy link

wntdt commented Mar 1, 2018

I have complete all the setup as androidviewclint, android studio also download culebra tester and culebra instrument but the url which is displayed in screen when open culebra tester app can not open in my windows 7 laptop browser.
Please help to resolve the problem.

both mobile device and laptop device was connected through same AP.

@dtmilano
Copy link
Owner

dtmilano commented Mar 1, 2018

@wntdt Can you successfully do adb shell to that device?
What's the url?
Can you ping the device IP on your wifi network from your windows laptop?

@clahzita
Copy link

clahzita commented Mar 6, 2018

I executed those steps:

  1. Install Culebra Tester and Culebra Tester Instrumentation.
  2. Connect the device (galaxy S6) with depuring usb on and I tested adb device to see it was online.
  3. Run Culebra Tester and put the IP on my browser: http://192.168.2.18:9999

After that, I waited to open the Culebra page, but it's not happened. Now, I'm using Linux.
"Can you successfully do adb shell to that device?" I don't know what it's mean. Do I have to send some shell command to my device before run culebra page on my browser?

Update 16:45, 03/06/2018:
I tested shell comands on the device, an it works.

@dtmilano
Copy link
Owner

dtmilano commented Mar 6, 2018

@clahzita I understand from your comment that 192.168.2.18 is the IP of the phone on the same wifi network as the Linux desktop computer you are using the browser on, correct?

Then from that Linux computer can you ping 192.168.2.18?
From the same computer, can you run adb shell ip addr show and see 192.168.2.18?

@clahzita
Copy link

clahzita commented Mar 6, 2018

http: //192.168.2.18:9999 is the address that is showed on Culebra Tester screen. when I use the ping command as you asked, this message appears "PING 192.168.2.18 (192.168.2.18) 56 (84) bytes of data." and when I use the adb command I can see the IP addr in the middle of some lines showed in the terminal screen.

@dtmilano
Copy link
Owner

dtmilano commented Mar 6, 2018

@clahzita let's try this from your Linux machine

$ curl -v http://192.168.2.18:9999

and you should expect

* Rebuilt URL to: http://192.168.2.18:9999/
*   Trying 192.168.2.18...
* TCP_NODELAY set
* Connected to 192.168.2.18 (192.18.2.18) port 9999 (#0)
> GET / HTTP/1.1
> Host: 192.168.2.18:9999
> User-Agent: curl/7.54.0
> Accept: */*
> 
< HTTP/1.1 301 Moved Permanently 
< Content-Type: text/html
< Date: Tue, 6 Mar 2018 21:30:35 GMT
< Location: /Assets/culebra.html
< Connection: keep-alive
< Content-Length: 93
< 
* Connection #0 to host 192.168.2.18 left intact
<html><body>Redirected: <a href="/Assets/culebra.html">/Assets/culebra.html</a></body></html>

if it doesn't happen, then the wifi router might be blocking traffic between devices.

@dtmilano
Copy link
Owner

dtmilano commented Mar 6, 2018

@clahzita also, if while you are seeing the Culebra Tester screen showing the message

Service started. You can access

http://192.168.2.18:9999

you run

$ adb shell netstat -ta | grep 9999

you should see

tcp6       0      0 :::9999                 :::*                    LISTEN 

@clahzita
Copy link

clahzita commented Mar 6, 2018

I used curl command and I saw:

* Rebuilt URL to: http://192.168.2.18:9999/
*   Trying 192.168.2.18...
* connect to 192.168.2.18 port 9999 failed: Connection timed out
* Failed to connect to 192.168.2.18 port 9999: Connection timed out
* Closing connection 0
curl: (7) Failed to connect to 192.168.2.18 port 9999: Connection timed out

the adb command showed:
tcp 0 0 :::9999 :::* LISTEN

Probably, the problem is the permission config of my university network. I gonna try use it in my home and I come back to give you an answer.
Thank you anyway for help me!

@dtmilano
Copy link
Owner

dtmilano commented Mar 6, 2018

@clahzita most probably your network is blocking traffic between wifi devices.

Another alternative would be to use an emulator with Google Play as described in Using-emulator-with-Google-Play-support.

Based on this conversation I also started Troubleshooting to help others.

Thanks and let me know if it worked for you.

@clahzita
Copy link

clahzita commented Mar 7, 2018

I tried to use on my personal computer and the culebra browser page worked.
So, I saw the Troubleshooting and I gonna try to use the forward adb shell command tomorrow, I hope it works.

I'll be back here to talk about the result.

@dtmilano
Copy link
Owner

dtmilano commented Mar 7, 2018

@clahzita Nice to hear that.

@wntdt
Copy link

wntdt commented Mar 7, 2018 via email

@clahzita
Copy link

clahzita commented Mar 7, 2018

So, @dtmilano, I used this:
$ adb forward tcp:9999 tcp:9999
And I opened http://localhost:9999 on my browser.
It's worked to open the culebra url using my device connected via USB.

Thank you for your help! 👍

@dtmilano
Copy link
Owner

dtmilano commented Mar 7, 2018

@wntdt probably the traffic between your device and computer is filtered by your AP/router.
The service is listening and you have access to your device via adb which is great.

Check Troubleshooting and see if the adb forward workaround works for you too.

@wntdt
Copy link

wntdt commented Mar 11, 2018 via email

@dtmilano
Copy link
Owner

@wntdt I'm not seeing your attachment. Can you please describe what you see once you open the url?

@auuunya
Copy link

auuunya commented Nov 8, 2018

image

hi,Tell me about it,please

@auuunya
Copy link

auuunya commented Nov 8, 2018

图片

嗨,请告诉我

image
The browser repeats the interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants