-
Notifications
You must be signed in to change notification settings - Fork 4
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
Random server port #3
Comments
Hi! Good question! I have 2 solutions in mind:
Right now I don't have time to code them into the Swift app, let me know if you have a working solution. |
Thank for your response! I thought about this approach as well, but thinking it would be rather slow. So I downloaded the iOS app, configured Wireshark to sniff my iPhone traffic. Turns out the iPhone sends a UDP broadcast message. Focusrite Control Servers on the network listen to this and is they receive a message they send back a response with the correct port! See this gist for a Node.js implementation. I think you can rewrite this to C/Swift if you want to include it in your application. Sorry I don't know C(++)/Swift! https://gist.github.com/daveyijzermans/f0354858b3eb765e19361ab85a6bc55b Hope that helps. Sorry I answered my own question the day after. 😅 Kind regards, Davey |
Great find, thanks for sharing this gist! |
Hi Davey, |
When you run the gist it should spit out the server ip and port of any Focusrite Control Server running and you can create a standard UDP socket to it and interact with the server as figured out by this repo's creator. It's fun to try to decode it yourself. :) If you're looking for an example, you can take a look at my project. Although it is part of something else I think you can extract the necessary bits from it. |
Thanks. I built the UDP discovery based off of your code for my ESP8266 Arduino project. |
@daveyijzermans Massive thanks for figuring out the UDP trick, extremely helpful! |
Hi! Thanks for your work in sniffing the Focusrite server protocol! I've used it to create my own implementation in Node.js. However, I try to connect with my client to a different computer on the network.
Until now this has worked, but suddenly the port to the control server has changed! It first was 49935, now on one computer it's 49930 and on another computer it's become 49943.
In your source code the port is hardcoded as 49152 (AppDelegate.swift, line 16) but this has never been the case for me.
I'm using the Focusrite Control Server on Windows though, might that be a cause of the issue? Do you have an idea how I can search for the right port each time or why even the port is changing?
Thanks!
The text was updated successfully, but these errors were encountered: