Otomatik Makine IP Tespiti

  • Konbuyu başlatan Konbuyu başlatan Admin
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 0
  • Görüntüleme Görüntüleme 63

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Kod:
//Ekle [HASH=1]#define[/HASH] ENABLE_AUTODETECT_INTERNAL_IP                // AutoDetect Local Machine IP

Kod:
//Arat     if (g_szPublicIP[0] != '0')         return true;     else         return false; //Değiştir     if (g_szPublicIP[0] != '0')         return true;     else     { [HASH=2]#ifdef[/HASH] ENABLE_AUTODETECT_INTERNAL_IP         if (g_szInternalIP[0] == '0')             return false;         else         {             strlcpy(g_szPublicIP, g_szInternalIP, sizeof(g_szPublicIP));             fprintf(stderr, "INTERNAL_IP -> PUBLIC_IP: %s\n", g_szPublicIP);             return true;         } [HASH=2311]#else[/HASH]         return false; [HASH=3]#endif[/HASH]     }

Otomatik Makine IP Tespiti Nedir?
Otomatik makine IP tespiti, bir sunucu veya oyun ortamında birden fazla oyuncunun aynı IP adresinden bağlanıp bağlanmadığını kontrol eden gelişmiş bir güvenlik ve yönetim sistemidir. Özellikle Metin2 özel sunucularında, bu yöntem sayesinde hileli hesaplar, çoklu hesap kullanımı (multiplaying) ve dolayısıyla adil olmayan yarışmalar engellenebilir. Bu sistem genellikle C++ tabanlı sunucu kaynak kodlarında entegre edilerek çalışır ve sunucu tarafında otomatik olarak IP adreslerini tarar.

IP Tespit Sisteminin Amacı
Metin2 gibi PVP odaklı oyunlarda, bir oyuncunun birden fazla karakterle oynaması (multiplaying) oyun deneyimini ciddi şekilde bozar. Bu durumda, bir kişi tüm harita üzerinde birden fazla karaktere sahip olabilir ve diğer oyuncuların kazanma şansını düşürür. Bu nedenle, IP tespit sistemi, sunucuda bulunan oyuncuların IP adreslerini karşılaştırarak, aynı IP'den birden fazla giriş yapıldığında belirli önlemleri devreye sokar. Bu önlem örneğin kullanıcıyı uyarabilir ya da doğrudan sunucudan atılmasına sebep olabilir.

IP Tabanlı Engelleme Nasıl Çalışır?
Sunucuya gelen her bağlantı, IP adresiyle birlikte loglanır. Sunucu, yeni bir oyuncu bağlandığında mevcut IP listesini tarar. Eğer aynı IP daha önce sistemde varsa, sunucu buna göre bir karar verir. Bu işlem genellikle C++ tabanlı AUTH ve GAME sunucu kaynak kodları üzerinden yapılır. AUTH sunucusu, kullanıcı girişi sırasında IP adresini kontrol eder. GAME sunucusu ise karakter seçimi ve oyun içi işlemler sırasında IP'yi takip eder. Bu iki modül koordineli çalışarak, IP tabanlı çoklu hesap kullanımını önler.

Python ile IP Kontrolü
Bazı sunucu yöneticileri, IP kontrolünü genişletmek ve daha kolay yönetebilmek adına Python tabanlı sistemler geliştirebilir. Python GUI ve Py Root kütüphaneleri kullanılarak IP loglarını görsel arayüz üzerinden takip eden sistemler oluşturulabilir. Bu tür sistemler, sunucu yöneticilerinin IP analizini daha hızlı yapmasını sağlar ve manuel müdahaleye olanak tanır. Örneğin bir Python scripti, belirli bir IP'den çok sayıda bağlantı varsa e-posta veya mesaj ile uyarı gönderebilir.

Sistem Güvenliği Açısından Önemli Noktalar
IP tespiti, sadece multiplaying engellemekle kalmaz, aynı zamanda spam botları, hileli yazılımlar ve kötü niyetli kullanıcıları da tespit etmede yardımcı olur. Ancak bazı internet servis sağlayıcılarının NAT kullanması nedeniyle, farklı kullanıcıların geçici olarak aynı IP'ye sahip olabileceği unutulmamalıdır. Bu yüzden IP tabanlı engelleme sistemleri, sadece IP'ye değil, MAC adresi, cihaz imzası gibi diğer verilere de dayandırılmalıdır. Bu tür gelişmiş sistemler, Martysama ve diğer Metin2 geliştirme kaynaklarında detaylı olarak ele alınmaktadır.


What Is Automatic Machine IP Detection?
Automatic machine IP detection is an advanced security and management system that checks whether multiple players connect from the same IP address within a server or gaming environment. Especially in Metin2 private servers, this method helps prevent fraudulent accounts, multi-account usage (multiplaying), and thereby unfair competition. This system typically integrates into C++ based server source codes and automatically scans IP addresses on the server side.

Purpose of the IP Detection System
In PVP-oriented games like Metin2, having one player operate multiple characters (multiplaying) severely disrupts the gaming experience. In such cases, a single person could control multiple characters across the entire map, reducing other players' winning chances. Therefore, the IP detection system compares players' IP addresses upon connection to the server. If the same IP already exists in the system, the server takes certain actions accordingly. This action can be warning the user or even kicking them off the server directly.

How Does IP-Based Blocking Work?
Every connection made to the server is logged with its IP address. When a new player connects, the server scans the existing IP list. If the same IP already exists in the system, the server makes a decision accordingly. This process usually occurs through C++ based AUTH and GAME server source codes. The AUTH server checks the IP address during login. The GAME server monitors the IP during character selection and in-game processes. These two modules work together to prevent IP-based multi-account usage.

IP Control with Python
Some server administrators may develop Python-based systems to expand and manage IP control more easily. Systems that track IP logs through a visual interface can be created using Python GUI and Py Root libraries. Such systems allow server administrators to analyze IP data faster and enable manual intervention. For instance, a Python script could send an email or message alert if multiple connections are detected from a specific IP address.

Important Points Regarding System Security[/CD]
IP detection not only prevents multiplaying but also assists in identifying spam bots, cheating software, and malicious users. However, some internet service providers use NAT, which means different users might temporarily share the same IP. Thus, IP-based blocking systems should not rely solely on IPs but also on other data such as MAC addresses and device signatures. Such advanced systems are detailed in resources like Martysama and other Metin2 development sources.
 

Şuan Bu Konuyu Görüntüleyen Kullanıcılar (Toplam : 0, Üye : 0, Misafir : 0)

Benzer konular

Geri
Üst Alt