seemoo-lab / openhaystack

Build your own 'AirTags' 🏷 today! Framework for tracking personal Bluetooth devices via Apple's massive Find My network.
https://owlink.org
GNU Affero General Public License v3.0
8.03k stars 428 forks source link

How to modify OHServerApp Address and Port? #141

Open mattiasandri opened 1 year ago

mattiasandri commented 1 year ago

I've been able to build and run the OHServerApp from https://github.com/Sn0wfreezeDev/openhaystack (simple_server branch). How can I modify the IP address and Port of the OHServerApp running on my Mac, so I will be to access it from inside my network with the mobile version? I've understood that I need to modify some Vapor settings somehow, but I'm not able to. I am not familiar with XCode or Swift in general. Thanks.

Systm21 commented 1 year ago

In default configuration, the Server ist listening only on http://localhost:8080/getLocationReports

If you want to have it open in the local Network you have to edit the Vapor Server. The File is located in the Vapor Package: Vapor->HTTP->Server->HTTPServer

You can set the IP to 0.0.0.0 an the Port to something different as 8080, if you like. 0.0.0.0 opens the binding to every IP address, not just localhost.