Skip to content

Conversation

@Wobin
Copy link

@Wobin Wobin commented Jul 8, 2025

Ok, don't actually merge this, but the work is done to use netsh to create a portforward,

MS Gamepass version doesn't like using ports when requesting uris, so this creates a portforward for 127.0.0.80:80 to 127.0.0.1:41012 so we can just use http://127.0.0.80/
it also cleans up prior port forwards and tries to clean up the portforward on close

Issues are that you need elevated privileges to execute the port forward, and while you can set the exe to launch as admin, you get the UAC prompt to do so every single time you reload mods, which can cause a deadlock if you don't realise it's asking in the background (also, very annoying). It may be by passable if we sign the exe maybe, but I'm unsure.

Anyway, here's some work. I have a combo set of batch files to create/remove the portforwards, and can walk people through the process, but no easy drop in solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant