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

localhost only http binding ? #27

Open
Romaxx opened this issue Nov 8, 2022 · 4 comments
Open

localhost only http binding ? #27

Romaxx opened this issue Nov 8, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@Romaxx
Copy link

Romaxx commented Nov 8, 2022

Hello, first, thank you for accepting me in this private beta version.
In order to use OSC with an external device (because I want to create a mobile app, mdns helping), it could be interesting to bind http server interface to 0.0.0.0 and not only to localhost (without any command line options). Could be pretty useful with PC and Quest devices.
Thanks

@momo-the-monster
Copy link
Contributor

Thanks for the suggestion, @Romaxx. When I attempted this initially, I found that binding to 0.0.0.0 on my machine required administrative privileges and...I think there was another issue that I now forget. I'd be open to this if there's a safe way to do it.

@momo-the-monster momo-the-monster added the enhancement New feature or request label Nov 9, 2022
@Romaxx
Copy link
Author

Romaxx commented Nov 9, 2022

@momo-the-monster thanks for the reply, have you tried with LAN/WAN interface ? is it planned to work with Quest (with some android authorizations), strange that UDP socket can bind without permissions whereas TCP (http) can't.

@momo-the-monster
Copy link
Contributor

Unfortunately, the issue is with the HttpListener class we're using. PR #29 lets you specify the port, but Windows will give an error unless you've messed with your security settings.

As far as I can tell, we'd need to switch to another http serving class (which will add extra dependencies) in order to enable this for Windows. The good news is that Android can bind to 0.0.0.0 in my tests.

@rrazgriz
Copy link
Member

rrazgriz commented Aug 2, 2023

Would like to bump this issue - it's especially important for implementing OSCQuery on standalone devices (where it really shines), especially standalone OSC trackers like Mocopi or Slime.

This limitation should probably be detailed in the Readme, especially for non-VRC users that are more likely to be operating services over the network.

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

No branches or pull requests

3 participants