Jump to content
metin2dev
Ekstasia2
  • 0
Sign in to follow this  
SadMonkey

open Character select kick 40k

Question

Hello , i got a problem .. I got home server and people cant connect on my server.. I have all ports online but they cant to connect , i can do it if i'm in lan with external ip but they not, how to repair that?

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Serverside: desc_client.cpp

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

            TEMP_BUFFER buf;

            TPacketGDSetup p;

            memset(&p, 0, sizeof(p));
            strlcpy(p.szPublicIP, "Your IP", sizeof(p.szPublicIP));

Clientside: NetAddress.cpp
 

void CNetworkAddress::GetIP(char* szIP, int len)
{
	BYTE IPs[4];
	*((DWORD*)IPs)=m_sockAddrIn.sin_addr.s_addr;

	_snprintf(szIP, len, "Your IP", IPs[0], IPs[1], IPs[2], IPs[3]);

 

Share this post


Link to post
Share on other sites
  • 0
9 hours ago, Cunoo said:

Serverside: desc_client.cpp


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

            TEMP_BUFFER buf;

            TPacketGDSetup p;

            memset(&p, 0, sizeof(p));
            strlcpy(p.szPublicIP, "Your IP", sizeof(p.szPublicIP));

Clientside: NetAddress.cpp
 


void CNetworkAddress::GetIP(char* szIP, int len)
{
	BYTE IPs[4];
	*((DWORD*)IPs)=m_sockAddrIn.sin_addr.s_addr;

	_snprintf(szIP, len, "Your IP", IPs[0], IPs[1], IPs[2], IPs[3]);

 

Internal ip or external? ty 4 reply

Share this post


Link to post
Share on other sites
  • 0
16 hours ago, SadMonkey said:

Internal ip or external? ty 4 reply

External.
 This is your public IP from ISP before router..
For example: 109.224.***.***

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×