자기 컴퓨터에서 자신만에 홈피 주소 사용하기. > 개발자팁

개발자팁

개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.

자기 컴퓨터에서 자신만에 홈피 주소 사용하기. 정보

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
===========================================================================================
저장후 실행하세요... 
 
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
==========================================================================================
 

 
 
원상 복귀하는 방법  
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
127.0.0.1       localhost
==================================================
 
127.0.0.1 밑에 소스 지우시면되요.
 
추천
4

댓글 5개

전체 5,352
개발자팁 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT