Giter VIP home page Giter VIP logo

Comments (6)

muhkhoi avatar muhkhoi commented on July 26, 2024

i mean just something like forwarding or bridging ws://127.0.0.1:8886/ to accessible from another computer in same network

from ws-scrcpy.

drauggres avatar drauggres commented on July 26, 2024

Hi.
Please look at scheme file I've just added.
Basically you need to make available two severs:

  1. http server (node js)
  2. web-socket server (scrcpy on device/emulator).

By default on android emulators network is configured as NAT, so you will need to forward port to the host machine (as described in known-issues

P.S. you may find interesting this project: https://github.com/openstf/stf

from ws-scrcpy.

muhkhoi avatar muhkhoi commented on July 26, 2024

thanks for the answer, as default run ws://0.0.0.0:8886 or ws://127.0.0.1:8886 as input event and video stream, does it is possible to birdge websocket to public ip, so my computer able to accessed by another in same local ip?

from ws-scrcpy.

drauggres avatar drauggres commented on July 26, 2024

known-issues:

The server on the Android Emulator listens on internal interface and not available from the outside (as workaround you can do adb forward tcp:8886 tcp:8886)

from ws-scrcpy.

muhkhoi avatar muhkhoi commented on July 26, 2024

known-issues:

The server on the Android Emulator listens on internal interface and not available from the outside (as workaround you can do adb forward tcp:8886 tcp:8886)
adb forward tcp:8886 tcp:8886, enable server accessible to 127.0.0.1:8886, but my aim is to assign to public ip like (192.168.xxx.xxx:8886) does it is possible? sorry i'm pretty new in android development

from ws-scrcpy.

muhkhoi avatar muhkhoi commented on July 26, 2024

my aims is just like forward to public ip (192.168.xx.xx) instead on localhost (127.0.0.1)

from ws-scrcpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.