วันพฤหัสบดีที่ 25 กรกฎาคม พ.ศ. 2556

แก้ไขปัญหา การเชื่อมต่อล้มเหลว LoL แบบ 2



ปัญหานี้เกิดขึ้นจาก dns ของ isp เราไม่ยอม lookup domain
แก้ไขแบบบ้านๆ ไปก่อน ครับ
เข้าไปที่
C:\Windows\System32\Drivers\etc\
ใช้ notepad เปิดไฟล์ hosts
เพิ่มบรรทัดนี้ลงไป
112.121.157.12 prodth.lol.garenanow.com

ทำการบันทึกไฟล์แล้วเข้าเกมส์

----------------------------------BAT File----------------------
@echo off
echo set host power by itemcom
REM check for existence of the file
if not exist %SystemRoot%\System32\drivers\etc\hosts (echo HOSTS FILE DOES NOT EXIST
goto completed)
REM check for existence of the entry
find /c /i "prodth.lol.garenanow.com" "%SystemRoot%\System32\drivers\etc\hosts" > NUL
if %ERRORLEVEL% equ 0 (
echo the entry [prodth.lol.garenanow.com] already exists
goto completed
) else (
REM add the entry
echo 112.121.157.12 prodth.lol.garenanow.com      #Game Login >>%SystemRoot%\System32\drivers\etc\hosts
)
:completed
echo COMPLETED