Git Product home page Git Product logo

Comments (14)

lisajamhoury avatar lisajamhoury commented on May 25, 2024 2

Thanks for checking in. Not yet, but I hope to tackle this or next week. I'll update here when there's news.

from kinectron.

lisajamhoury avatar lisajamhoury commented on May 25, 2024 1

Ok good to know. I'll take a look at this before the end of the week.

from kinectron.

lisajamhoury avatar lisajamhoury commented on May 25, 2024 1

Thanks for checking in. This is still not working. This is an issue with Chrome and Firefox blocking insecure connections to the local network. I have researched a number of solutions for this, but haven't yet found anything that will work as Chrome and Firefox are intentionally blocking this type of connection.

If you happen to be working with both the p5 web editor and the Kinectron server on the same computer, you can use 127.0.0.1 as the IP address in the web editor and it will work.

let kinectronIpAddress = "127.0.0.1";

from kinectron.

lisajamhoury avatar lisajamhoury commented on May 25, 2024 1

I just pushed release 0.3.4 with a fix for this. I've added an option to access the Kinectron server with ngrok. It works by creating an https tunnel to the Kinectron server at your localhost port 9001 (127.0.0.1:9001).

Ngrok uses a public url. This means that in addition to https, which is what the p5 Web Editor requires, you now have a Kinectron server that can be accessed from anyone on the internet.

Opening the Kinectron server to the internet does mean that anyone with the url could possibly exploit security vulnerabilities in the Kinectron server and its dependencies. (I'm not saying there are vulnerabilities, but there may be...) If you're just using this for local development the risk of exploitation should be very low because ngrok creates a unique alphanumeric url that changes each time the server is run. (This is good for safety, although will be a bit annoying as the developer bc you need to replace the public address in the client every time you restart the server. ) So there is little likelihood that someone with malicious intent would be able to find you. If you'll be publicly sharing your public Kinectron url, you'd be opening yourself up to higher risk (although still relatively low).

Instructions are here: "Create an Instance of Kinectron." But essentially all you do is click the button for "Create Public Address" and then use that address in the client when creating an instance of Kinectron instead of the ip address.

let kinectron = new Kinectron("46b028e5c8ec.ngrok.io");

I'm going to close this issue for now, but please feel free to comment and let me know how if it is working for you, etc. Thanks!

from kinectron.

rayuli avatar rayuli commented on May 25, 2024

Hi, I have exactly the same problem.
thanks!

from kinectron.

lisajamhoury avatar lisajamhoury commented on May 25, 2024

Can you provide more information about the problem? Are you getting any errors in the console on either the server or the client? Sending a screenshot of the server interface and open console could also help.

from kinectron.

rayuli avatar rayuli commented on May 25, 2024

Hi!

The kinectron server is geeting feed and doesn´t show any error messages. The p5.js online editor doesn't get any data and doesn't show any message. It doesn't print either the console.log() message.
I have tried this same example using a local web server for chrome and works perfect.

thanks for answering!

J

Captura de pantalla 2019-09-11 a las 15 43 16

from kinectron.

lisajamhoury avatar lisajamhoury commented on May 25, 2024

If you look in Chrome's console (not the p5 editor console) do you see any errors?

It looks like this is an issue with the p5 web editor specifically. I'll be able to take a look into it later this month. For now can you use your local web server and Chrome?

from kinectron.

rayuli avatar rayuli commented on May 25, 2024

Hi!
Yes, it shows several errors.
I´ll keep using a local server.
thanks for answering!
Captura de pantalla 2019-09-14 a las 11 15 19

from kinectron.

tbenbow avatar tbenbow commented on May 25, 2024

I have an app that was running for several months and lost the ability to connect after a Chrome update. I was getting warnings similar to the ones above about RTCIceServer.url and onaddstream being deprecated. I downgraded to Chrome v64 and my app gained connectivity again.

from kinectron.

lisajamhoury avatar lisajamhoury commented on May 25, 2024

It looks like the main issue here is the mixed content error, which I'm getting in both Firefox and Chrome. I will dig into how to resolve this, but I surfaced a lot of other issues while digging into this.

In Chrome, Peerjs is not firing connection.open on the application side when it receives a peer connection. This is preventing the peer connection from ever sending data between app and client. This is a known issue , but it may have been addressed in recent Peerjs updates.

I need to double check that PeerJS is being kept up to date in dependencies. But long term we need to move off of Peerjs entirely because it's not being maintained consistently. I will touch base with @js6450 about options and open a new issue for this.

Also, the NYU kinectron bundle link is getting a CORS error again. Need to fix with @vanevery. Long term, I will update all example links to jsdelivr and check that development pipeline is changed to keep jsdelivr link up to date.

For RTCIceServer warning, need to look back at #9

from kinectron.

lisajamhoury avatar lisajamhoury commented on May 25, 2024

I just published a new release of Kinectron server and application, which solves many of the connectivity issues between the server and the client.

The new server is available at https://github.com/kinectron/kinectron/releases/tag/0.2.0 and the client is at:

https://cdn.jsdelivr.net/gh/kinectron/[email protected]/client/dist/kinectron-client.js

Note that the changes will only work with a local server (like SimpleHTTPServer), not from the p5 online editor, which I hope to have running again in the next few weeks.

from kinectron.

slowizzm avatar slowizzm commented on May 25, 2024

Curious if there was an update with this working in the web editor? No rush just noticed it is still getting the Mixed Content err.

from kinectron.

slowizzm avatar slowizzm commented on May 25, 2024

Any updates on this? I noticed this is still not working, thought I would check in ...

from kinectron.

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.