ButtplugMc icon indicating copy to clipboard operation
ButtplugMc copied to clipboard

Allow setting an IP address for the intiface server

Open drawnto opened this issue 11 months ago • 3 comments

Phones have in my experience more reliable Bluetooth support then many laptops/desktops. With intiface being available on Android, it would make sense to point to a intiface server with the ip-address of a phone in the same network.

This could be done via command line like the existing add to command. Currently the mod hardcodes that it must be the IP of the machine runnning minecraft.

Does the current architecture use the client side or the server side to connect to intiface? This distinction is important for remote play.

drawnto avatar Dec 10 '25 17:12 drawnto

Currently, this plugin only allows for local play within a LAN network. However, updating this to work with remote servers is something I'm keen to look into, I just haven't had the time lately.

Cyloci avatar Dec 10 '25 19:12 Cyloci

All which would be required was to change this line to access an user supplied string or use the default currently present.

A different (client-side) buttplug.io mod does that this way.

drawnto avatar Dec 19 '25 10:12 drawnto

Since Minegasm is a client side mod they ca store user configs pretty easily, locally. We would have to store them remotely and configure them via some sort of command interface.

That said, what you have suggested doesn't sound like it would take too much work. Like I mentioned, I don't really have time to set up the dev env for this project, but if you want to try hacking around with this you can try the following:

  • Updating lines 33 and 40 here to allow passing a specific address through getClient, to connectButtplugClient
  • Adding a command which simply calls getClient with the player supplied IP.
  • Optionally, you could add a HashMap which associates the player with their last given IP address, for ease of reconnection.

PRs are welcome! :)

Cyloci avatar Dec 19 '25 13:12 Cyloci