자기 컴퓨터에서 자신만에 홈피 주소 사용하기. 정보
JavaScript 자기 컴퓨터에서 자신만에 홈피 주소 사용하기.본문
ip.bat // 파일 하나 생성하세요..
==========================================================================================
FIND /C /I "activate.adobe.com" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO ^서버아이피주소 홈페이지주소 # SIR >>%WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO ^서버아이피주소 홈페이지주소 # SIR >>%WINDIR%\system32\drivers\etc\hosts
===========================================================================================
저장후 실행하세요...
Ex: 자신에 컴퓨터 아이피 주소가 192.168.10.200 이고 홈피 주소를 sir.com 사용하고 싶다
같은 공유기 사용시에 같은 라인에 컴퓨터에서도 이걸 추가만 해줘도 되죠
==========================================================================================
FIND /C /I "activate.adobe.com" %WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO ^192.168.10.200 sir.com # SIR >>%WINDIR%\system32\drivers\etc\hosts
IF %ERRORLEVEL% NEQ 0 ECHO ^192.168.10.200 sir.com # SIR >>%WINDIR%\system32\drivers\etc\hosts
==========================================================================================
원상 복귀하는 방법
C:\WINDOWS\system32\drivers\etc\hosts
hosts 파일에서
기본 소스
==============
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
==================================================
127.0.0.1 밑에 소스 지우시면되요.
추천
4
4
댓글 5개
추천합니다.
감사여~
카이루님 늘 감사드립니다!
헐 늘은 아닙니다 심심할때만..;;;
추천합니다.