openhaystack icon indicating copy to clipboard operation
openhaystack copied to clipboard

How to modify OHServerApp Address and Port?

Open mattiasandri opened this issue 3 years ago • 1 comments

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.

mattiasandri avatar Aug 02 '22 14:08 mattiasandri

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.

Systm21 avatar Aug 03 '22 23:08 Systm21