ricochhet/Erupe-Legacy

How do I change the port to which the launcher is accessed?

mrrlll opened this issue · 3 comments

The home server is separated from the main PC network.
We have opened the port to allow access from the outside.
But, port 80 is already used by Apache2.
The port entry for launcher in config.json has been changed from 80 to 8080.
However, mhf.exe on the client side is trying to access port 80 and returns a 404 Error.
How can I change the access point of the launcher?

This text is translated using DeepL.

Translated with www.DeepL.com/Translator (free version)

改端口ip.docx
I wrote a word, which records how I solve this problem, but I'm a little lazy, you need to translate yourself

Hello I did not have the time to work on the documentation here for a while. But this might help you out: https://mhf.lightnovel-dungeon.de/mhf-setup.html I will somewhen update this for this repo as well

日本語:

私は自分のサーバーを作ったらそんな問題あった、PortProxyを使えばそのApache2のサーバーを使えなくなるけど80の他に繋げます
管理人のコマンドプロンプトでこれを使ってみてください

netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=80 connectaddress=127.0.0.1 connectport=8080

connectaddressを変えるとlocalhost以外のサーバーに繋げます

English:

For a personal solution you may use portproxy on netsh for windows.
In an administrator command prompt, you may run:

netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=80 connectaddress=127.0.0.1 connectport=8080

Changing the connectaddress IP will allow you to connect to foreign servers as well.