Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Login error in client when using rental server (ubuntu-desktop) #56

Open
K-Lemu opened this issue Mar 20, 2022 · 7 comments
Open

Login error in client when using rental server (ubuntu-desktop) #56

K-Lemu opened this issue Mar 20, 2022 · 7 comments

Comments

@K-Lemu
Copy link

K-Lemu commented Mar 20, 2022

スクリーンショット 2022-03-20 224427

I rented a VPS, set up the erupe environment and started the server.
but, when I started the MHF client and tried to connect, I got an "error ! logging in!" was displayed at the top of the client and I couldn't connected.

I used "ufw" to open the port, and when I checked the port opening with the port opening confirmation service, I found that the port was opened without any problem.
スクリーンショット 2022-03-20 222302
スクリーンショット 2022-03-20 232035

I am not very familiar with Linux, but has anyone else had a similar problem?
Or is there a cause or solution?

@FerLuisxd
Copy link

FerLuisxd commented Mar 28, 2022

I'm on the same page. I know how to read code and I believe those buttons do what you see here. It has nothing to do that you rented a vps, you are succesfully connecting to the server but accessing the port 80, I don't get the process and what should we put on the login/password to get to the next page?

@FerLuisxd
Copy link

FerLuisxd commented Mar 28, 2022

Also tried checking if ports where opened with https://www.yougetsignal.com/tools/open-ports/
Update: So tried both 127.0.0.1 && local IPV4 (from the router) and both gave me the same issue.
On Debian 11 btw
Update2: So reading the docs again I omited step 5, but after patching it it still has the same error as before... , I wish we had easy access to logs so we can share more but that's it

@FerLuisxd
Copy link

FerLuisxd commented Mar 28, 2022

FIXED IT @K-Lemu , according to the OLD docs
You need to update the ips in config.json to the EXTERNAL IPV4 (the same one as you have in your host file in windows)

Please @ricochhet update the docs that if you want to host and connect externally that you NEED to put yout EXTERNAL IP(internet ip) and not the INTERNAL ONE

@K-Lemu
Copy link
Author

K-Lemu commented Mar 28, 2022

@FerLuisxd
Yes, that is correct.
If start the server using a windows machine or vm, you can write an external or internal IP in config.json and forward the port so that your external friends can access it.
(So far I have also started the server on a submachine and port forwarded it...)

However, when I start the server on vps, I write the external IP in config.json because my VPS has no internal IP, only a borrowed external IP.
And I gave this problem because I cannot log in from outside even though I am using ufw to open the port.

@FerLuisxd
Copy link

FerLuisxd commented Mar 28, 2022

The docs say that you use the IPV4 of your router (I interpreted it as the local network ip) from this step.

Replace the 127.0.0.1 (localhost) with your external IPV4 address (of your router).

The external IP is the internet IP, that should be on the config.json if you want external people to connect. That fixed the issue for me.

@ricochhet
Copy link
Owner

Make sure your hosts file is setup correctly as well. You will need to place your VPS IP rather than localhost.

@K-Lemu
Copy link
Author

K-Lemu commented Apr 2, 2022

Uh, do you mean I need to set up hosts on the server machine as well as the client?
Also, I run the server on a sub machine (external IP is another ISP) and was able to access and log in from the main machine without any problems.
I used the ufw command to set the port open on the sub machine as well.
スクリーンショット 2022-03-27 133840 (1)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants