ricochhet/Erupe-Legacy

friend can't connect to my server

Arasutaru opened this issue · 15 comments

i have everything setup im pretty sure at least i have the port forwarding setup correctly i belive and the config for the server should be set up correctly but he gets this also his host file should be correct i just gave him mine since mine is workin
149424824-34a40fa6-80c3-4d2f-9397-b8235db682ce
g

do i foward the my database is using? the pgadmin 4 server port i mean

do i foward the my database is using? the pgadmin 4 server port i mean

Normally you should not have to do that. The Client does not need access to the database I think, to be 100% sure I would need to test that.

You certainly having an error connecting to the server there. I might need come back to you a bit later on the matter.

dang alright

So the database-port does not need to be port-forwarded for the server to work. I just spun up a new Server and it worked fine for me. Here is another try for you as simple as I can get it for you:

find out your external IP with something like https://www.whatismyip.com/ or similar

config.json on the server:

{
    "host_ip": "YOUR EXTERNAL IP HERE",
    "bin_path": "bin",

    "devmode": true,
    "devmodeoptions": {
        "cleandb": false,
        "maxlauncherhr": true,
        "fixedstageid": true
    },

    "discord": {
        "enabled": false,
        "bottoken": "<BOT TOKEN>",
        "channelid": "<CHANNEL ID>"
    },

    "database": {
        "host": "localhost",
        "port": 5432,
        "user": "postgres",
        "password": "password",
        "database": "erupe"
    },
    "launcher": {
        "port": 80,
        "UseOriginalLauncherFiles": false
    },
    "sign": {
        "port": 53312
    },
    "channel": {
        "port": 54001
    },
    "entrance": {
        "port": 53310,
        "entries": [
            {
                "name": "AErupe server noob",
                "ip": "YOUR EXTERNAL IP HERE",
                "unk2": 0,
                "type": 3,
                "season": 0,
                "unk6": 0,
                "allowedclientflags": "4096",
                "channels": [
                    {
                        "port": 54001,
                        "MaxPlayers": 10,
                        "CurrentPlayers": 0,
                        "Unk4": 0,
                        "Unk5": 0,
                        "Unk6": 0,
                        "Unk7": 0,
                        "Unk8": 0,
                        "Unk9": 0,
                        "Unk10": 319,
                        "Unk11": 248,
                        "Unk12": 159,
                        "Unk13": 12345
                    }
                ]
            },
            {
                "name": "AErupe server open",
                "ip": "YOUR EXTERNAL IP HERE",
                "unk2": 0,
                "type": 1,
                "season": 0,
                "unk6": 0,
                "allowedclientflags": 0,
                "channels": [
                    {
                        "port": 54001,
                        "MaxPlayers": 10,
                        "CurrentPlayers": 0,
                        "Unk4": 0,
                        "Unk5": 0,
                        "Unk6": 0,
                        "Unk7": 0,
                        "Unk8": 0,
                        "Unk9": 0,
                        "Unk10": 318,
                        "Unk11": 251,
                        "Unk12": 155,
                        "Unk13": 12345
                    }
                ]
            }
        ]
    }
}

for the clients the hosts file should have the following entries:

EXTERNAL IP OF THE SERVER (SAME AS IN CONFIG) mhfg.capcom.com.tw
EXTERNAL IP OF THE SERVER (SAME AS IN CONFIG) mhf-n.capcom.com.tw
EXTERNAL IP OF THE SERVER (SAME AS IN CONFIG) cog-members.mhf-z.jp
EXTERNAL IP OF THE SERVER (SAME AS IN CONFIG) www.capcom-onlinegames.jp
EXTERNAL IP OF THE SERVER (SAME AS IN CONFIG) srv-mhf.capcom-networks.jp

Also make sure to try to delete Internet Explorers Cache like descripted here: https://github.com/ricochhet/Erupe/blob/master/docs/Troubleshooting.md#general-tips

Also make sure to disable High Grade Option in the Config of the launcher (click Config in the login screen)

If the ports needed are forwarded correctly on your router and route traffic to your PC it should* work. If this still not helps you, you might need to check your network or figure out what exactly is wrong on your end or the end of you friend. But thats a thing no one can really help you with.

wait i use th epublic ipv4 right?

wait i use th epublic ipv4 right?

yes

ok well it didnt work

i changed the server config and hosts file ran the server and gave him the edited hosts file and hes getting the same issue

try a whole new server please and clean that internet explorer cache, both of you please

alright

ok made the new server migrated it set the settings of the ip to the public ipv4 and cleared our cache and it still didnt work

ok made the new server migrated it set the settings of the ip to the public ipv4 and cleared our cache and it still didnt work

Then I don't know what else to do. Check if Port-Forward actually works as intended. Does the server work locally at least?

havent tested with th enew ip im abt to

ok server works for local use but ive made rules and everying to allow things through those ports and i have port fowarding on i do belive unless the thing for port fowarding is lying to me
is it possible its a issue on hiis end?

wait is it posible that windows defender blocked him joining me?
i added rules so i wont have to worry about it on my end but he triesd setting up his own server and windows defender tried blocking it