Bermain Dengan LocalHost ASP.net
Sebelumnya saya telah membahas tentang :
http://coretanku-online.blogspot.com/2015/02/cara-deploy-website-aspnet-menggunakan.html
pada postingan kali ini Sekarang saya akan membuat cara menjalankan website buatan asp.net di localhost menjadi nama yang kita inginkan.
misalkan IP adress saya di localhost 10.171.91.206 jika saya ketik di adress bar webBrowser dengan cara ini : http//webcoin maka akan bisa di akses dengan kontent yang sama.berikut ini adalah caranya :
sebelumnya,silakan konfigurasi dulu di komputer agan nya :
posisi IIS sudah aktif,terus lakukan konfigurasi :
Start -> Control Panel -> Windows Firewall -> Advanced Settings -> Inbound Rules
lalu Scroll Dibagian bawah ada World Wide Web Services (HTTP Traffic-In) Double Klik dan Centang Pada Enable .terus klik Aplly dan OK .
Dan llakukan langkah berikut ini :
- Start IIS Manager
To start IIS Manager from the Run dialog box
- On the Start menu, click Run.
- In the Open box, type " inetmgr " and then click OK.
To start IIS Manager from the Administrative Services console
- In the Control Panel window, click Administrative Tools.
- In the Administrative Tools window, click Internet Information Services (IIS) Manager.
- Select your site (bloggingdeveloper) from the left side and select Bindings from the right side under the Edit Site section.
- In the bindings window Click Add, enter 127.0.0.2 as the IP Address, leave the host header empty and click OK.
- Edit the Hosts File
- Browse to Start -> All Programs -> Accessories
- For Windows Vista Users : Right click "Notepad" and select "Run as administrator"
- Click "Continue" on the UAC prompt
- Click File -> Open
- Browse to "C:\Windows\System32\Drivers\etc"
- Change the file filter drop down box from "Text Documents (*.txt)" to "All Files (*.*)"
- Select "hosts" and click "Open"
- To the end of the file add the following line:
127.0.0.2 webcoin
- Close Notepad. Save when prompted.
If you skip Step b in Windows Vista and try to modify your hosts file, it will not let you save it. It tells you that you don't have permission. To successfully modify the hosts file, run notepad.exe as an administrator.
To start IIS Manager from the Run dialog box
- On the Start menu, click Run.
- In the Open box, type " inetmgr " and then click OK.
To start IIS Manager from the Administrative Services console
- In the Control Panel window, click Administrative Tools.
- In the Administrative Tools window, click Internet Information Services (IIS) Manager.
- Browse to Start -> All Programs -> Accessories
- For Windows Vista Users : Right click "Notepad" and select "Run as administrator"
- Click "Continue" on the UAC prompt
- Click File -> Open
- Browse to "C:\Windows\System32\Drivers\etc"
- Change the file filter drop down box from "Text Documents (*.txt)" to "All Files (*.*)"
- Select "hosts" and click "Open"
- To the end of the file add the following line:
- Close Notepad. Save when prompted.
127.0.0.2 webcoin
If you skip Step b in Windows Vista and try to modify your hosts file, it will not let you save it. It tells you that you don't have permission. To successfully modify the hosts file, run notepad.exe as an administrator.
0 KOMENTAR