Problem with Char connecting to Server

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
BlackEndless
Nou Venit

Nou Venit
Mesaje: 1
Membru din: 11 Aug 2021, 00:11
Regat: Chunjo
Aprecieri: 34  
Mulţumiri: 0
Medalii

Hello Community,

3 Days i try to connect via Hamachi to Fliege Files v2 reworked. Im sure, all needed Ports are open and will redirected to my virtual Machine, Firewall has Permissions for this Connection and the Client has correct Serverinfo.py Entry. I have no Idea anymore, what i can do.
The PUBLIC_IP i have set in every CONFIG via BIND_IP: and i can connect to MySQL and SSH/SFTP but after Char Select i will return back to Login Window.

In the Game Soruce i have change:

desc_client.cpp

Cod: Selectaţi tot

		case PHASE_DBCLIENT:
			{
				sys_log(1, "PHASE_DBCLIENT");

				if (!g_bAuthServer)
				{
					static bool bSentBoot = false;

					if (!bSentBoot)
					{
						bSentBoot = true;
						TPacketGDBoot p;
						p.dwItemIDRange[0] = 0;
						p.dwItemIDRange[1] = 0;
						memcpy(p.szIP, g_szPublicIP, 16);
						DBPacket(HEADER_GD_BOOT, 0, &p, sizeof(p));
					}
				}

				TEMP_BUFFER buf;

				TPacketGDSetup p;

				memset(&p, 0, sizeof(p));
				strlcpy(p.szPublicIP, g_szPublicIP, sizeof(p.szPublicIP));
i have change the g_szPublicIP to "MY_IP_ADDR"

and my config.cpp looks so

Cod: Selectaţi tot

bool GetIPInfo()
{
	struct ifaddrs* ifaddrp = NULL;

	if (0 != getifaddrs(&ifaddrp))
		return false;

	for( struct ifaddrs* ifap=ifaddrp ; NULL != ifap ; ifap = ifap->ifa_next )
	{
		struct sockaddr_in * sai = (struct sockaddr_in *) ifap->ifa_addr;

		if (!ifap->ifa_netmask ||  // ignore if no netmask
				sai->sin_addr.s_addr == 0 || // ignore if address is 0.0.0.0
				sai->sin_addr.s_addr == 16777343) // ignore if address is 127.0.0.1
			continue;

		char * netip = inet_ntoa(sai->sin_addr);

		if (g_szPublicIP[0] == '0')
		{
			strlcpy(g_szPublicIP, netip, sizeof(g_szPublicIP));
			fprintf(stderr, "PUBLIC_IP: %s interface %s\n", netip, ifap->ifa_name);
		}
	}

	freeifaddrs( ifaddrp );

	if (g_szPublicIP[0] != '0')
		return true;
	else
		return false;
}
I can only connect, when this VirtualBox is bridget with my LAN Adapter. In Hamachi i can connect MySQL and Filezilla but after Char Login kick...
I Have set to Hamachi Interface and give the FreeBSD the classic IP from oldschool Times with .100
The Gateway is my normal Hamachi IP and the Netmask is 255.0.0.0.

With the Daroo 2011 Files i can connect without Problems (because mc.exe & Surahead.exe)

What i can do, to connect to WorldServer without Kick? I dont want choose another Connection, Hamachi is my best und safest VPN and i have 5 Years only good Experience with them. I dont want earn Money with Metin2 Servers, i will hide my Server and play only with Friends and Family. This is the Reason why i choose Hamachi.


I hope someone can help me :/ And sry for my bad english.


with kind regarts, BlackEndless :)
Închis
Răspunsuri
3
Vizualizări
260
Răspunsuri
9
Vizualizări
507
Răspunsuri
4
Vizualizări
666
Răspunsuri
2
Vizualizări
197

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Semrush [Bot] și 154 vizitatori