Salutare! am un server intel xeon si 20+ gb ram 12.2-RELEASE instalat..
am instalat un serverfile.. totul functioneaza cum trebuie.. doar ca cei din afara retelei nu se pot conecta...
Acum 1-2 ani am instalat un serverfile.. si am facut ceva modificari... prin sursa game si a functionat... se puteau conecta si cei din afara retelei
Daca puteti sa ma ajutati.. sau mai stie careva acel tutorial.. as fi recunoscator
Cum pot face un host pe pc personal?
- [HF]White
-

- Mesaje: 2684
- Membru din: 03 Iul 2018, 13:40
- Regat: Jinno
- Aprecieri: 338
- Mulţumiri: 5331
- Rezolvări prob.: 13
- Discord: Copiază ID
- Contact:
In desc_client.cpp cauta:
Modifica cu:
Unde la "External IP" modifici cu ip-u tau. Exemplu:
Daca tot nu merge fa asta: https://metin2.dev/topic/28293-fixselec ... r-and-vps/
Cod: Selectaţi tot
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));Modifica cu:
Cod: Selectaţi tot
if (!bSentBoot)
{
bSentBoot = true;
TPacketGDBoot p;
p.dwItemIDRange[0] = 0;
p.dwItemIDRange[1] = 0;
memcpy(p.szIP, "External IP", 16);
DBPacket(HEADER_GD_BOOT, 0, &p, sizeof(p));
}
}
TEMP_BUFFER buf;
TPacketGDSetup p;
memset(&p, 0, sizeof(p));
strlcpy(p.szPublicIP, "External IP", sizeof(p.szPublicIP));Cod: Selectaţi tot
if (!bSentBoot)
{
bSentBoot = true;
TPacketGDBoot p;
p.dwItemIDRange[0] = 0;
p.dwItemIDRange[1] = 0;
memcpy(p.szIP, "109.197.24.321", 16);
DBPacket(HEADER_GD_BOOT, 0, &p, sizeof(p));
}
}
TEMP_BUFFER buf;
TPacketGDSetup p;
memset(&p, 0, sizeof(p));
strlcpy(p.szPublicIP, "109.197.24.321", sizeof(p.szPublicIP));am facut asta si acum imi ramane la "Asteapta pentru a te conecta la server"[HF]White scrie: ↑05 Apr 2022, 18:11 In desc_client.cpp cauta:
Cod: Selectaţi tot
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));
Modifica cu:
Unde la "External IP" modifici cu ip-u tau. Exemplu:Cod: Selectaţi tot
if (!bSentBoot) { bSentBoot = true; TPacketGDBoot p; p.dwItemIDRange[0] = 0; p.dwItemIDRange[1] = 0; memcpy(p.szIP, "External IP", 16); DBPacket(HEADER_GD_BOOT, 0, &p, sizeof(p)); } } TEMP_BUFFER buf; TPacketGDSetup p; memset(&p, 0, sizeof(p)); strlcpy(p.szPublicIP, "External IP", sizeof(p.szPublicIP));
Daca tot nu merge fa asta: https://metin2.dev/topic/28293-fixselec ... r-and-vps/Cod: Selectaţi tot
if (!bSentBoot) { bSentBoot = true; TPacketGDBoot p; p.dwItemIDRange[0] = 0; p.dwItemIDRange[1] = 0; memcpy(p.szIP, "109.197.24.321", 16); DBPacket(HEADER_GD_BOOT, 0, &p, sizeof(p)); } } TEMP_BUFFER buf; TPacketGDSetup p; memset(&p, 0, sizeof(p)); strlcpy(p.szPublicIP, "109.197.24.321", sizeof(p.szPublicIP));
daca intru cu ip din aceeias retea.. ma conectez fara probleme
- [HF]White
-

- Mesaje: 2684
- Membru din: 03 Iul 2018, 13:40
- Regat: Jinno
- Aprecieri: 338
- Mulţumiri: 5331
- Rezolvări prob.: 13
- Discord: Copiază ID
- Contact:
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 22 vizitatori



