jhalter / mobius

A Hotline server implemented in Golang for macOS, Linux, and Windows operating systems
MIT License
73 stars 8 forks source link

Option to bind another IP #116

Closed Tazintosh closed 5 months ago

Tazintosh commented 5 months ago

Hi,

I'm running Mobius —huge thanks for this— on a Mac mini M1 used as server for many other things. The server network is set to two VLANs, one is a "Family", the other a "Services". So for instance, I'm running httpd, node-red, mqtt, etc. on the Services Network using an option in the config file of those processes. Would it be possible to implement this into the config.yam file? BindIP: 10.0.0.1 Binding port could be a nice addition too.

Thanks in advance for the consideration.

jhalter commented 5 months ago

Hi, I've just released v0.11.0 which adds a --interface flag that will let you specify the interface to listen on (e.g. --interface=10.0.0.1). If you want change the port you can use the existing --bind flag (e.g. --bind=5600). This would make the API server listen on 5600 and the file transfer server on 5601.

Hope this helps!

Tazintosh commented 5 months ago

Awesome! Can those flags be set inside the config.yam too? Is there an up to date config.yam example BTW?

jhalter commented 5 months ago

At least for now the interface and port can only be set as command line flags, as this is the simplest path forward that isn't a breaking change from previous version. I may be open to revisiting this in the future, but I want to tackle some other tasks first.

Here's the source of the default config.yaml: https://github.com/jhalter/mobius/blob/master/cmd/mobius-hotline-server/mobius/config/config.yaml

Tazintosh commented 5 months ago

Sure, no prob.

Thanks again for making this alive! I used to love Wired Client/Server, like —a lot—, but even if it's running today on my M1, the protocol > 2.5 is sadly incompatible with 2.0 versions and older. It's quite difficult today to run todays computers with super old 90's ones and try to get them sharing stuffs all together. SMB is now too recent to be backward compatible, no AFP anymore, Webdav is super cool and working, but good clients are missing on old computers, same for FTP, etc.

But hey, you bring back to life Hotline! I just have to test with a classic computer. Edit: tested on Classic and it's working :) Only the banner (even the Mobius default) won't load.

jhalter commented 5 months ago

Hey, thanks and glad you're enjoying the software!

Regarding banners: the only clients I know of with banner support are the classic 1.8 client and mierau's new macOS client

Tazintosh commented 5 months ago

I'm running Hotline-Client-1.9.2 on Mac OS 9 and the banner does start loading (at least on the progress bar), but never seems to finish. I never saw the banner on mierau's client, don't even know where it should display.

jhalter commented 5 months ago

The 1.9 client banner question has come up a few times, so I wrote up my understanding of what's happening based on notes from a couple year back:

https://github.com/jhalter/mobius/wiki/Hotline-1.9.2-client-banners

In mierau's client, you'll see the banner at the top of the public chat window pane.

Tazintosh commented 5 months ago

Here's my chat window (using default Mobius banner). image Unless that serving the banner uses a different port than 5500, 5501: in this case it would be blocked by my router