Friday, February 15, 2019

Accessing web site running in Visual Studio 2017 using an alternative hostname

Assumptions:

  • Running in Visual Studio 2017
  • Running an application on port 8888
  • Url used to access the application is http://localhost:8888

If you want to access the web site using http://somenamehere:8888 you can do this by doing the following.

  1. Open your .vs/config/applicationhost.config file in a text editor
  2. Find the binding for your application.
    <binding protocol="http" bindingInformation="*:8888:localhost" />
  3. In the same <bindings> section, add another <binding>
    <binding protocol="http" bindingInformation="*:8888:" />
  4. Optional: If you are using https you will need to do the same. The key is that you match the ports.
You should be able to launch your web site in Visual Studio (Control-F5, etc). This will bring it up as it always have.

Now you need to hack your dns so that it can resolve your new made up hostname. In this example, it is somenamehere. The easiest way to do this is to open up your hosts file (C:\Windows\System32\drivers\etc\hosts) in a text editor and add the following line to the bottom of it.

127.0.0.1   somenamehere

You should now be able to ping that hostname and see that 127.0.0.1 is responding.

Now open up the browser and go to http://somenamehere:8888 and you should get your application again.

NOTE: If VS2017 gives you any issues, it may be helpful to run it as administrator.

27 comments:

linh said...


university  academy lesson  teacher  master student  spa manager skin


. said...

Love to read it,Waiting For More new Update and I Already Read your Recent Post its Great Thanks.

game android terbaik
game pc terbaik
hasil bola
berita olahraga
trending topic

Ismail said...

Thanks for sharing this information with us...
Data Science Training in Bangalore

Suresh said...

Amazing article useful information.

Web designing trends in 2020

When we look into the trends, everything which is ruling today’s world was once a start up and slowly begun getting into. But Now they have literally transformed our lives on a tremendous note. To name a few, Facebook, Whats App, Twitter can be a promising proof for such a transformation and have a true impact on the digital world.

we have offered to the advanced syllabus course web design and development for available join now.

more details click the link now.

https://www.webdschool.com/web-development-course-in-chennai.html

Ismail said...

Really awesome blog!! Thanks for sharing...
Java Training in Bangalore

IT Software Training Institute said...

Blockchain Course in Bangalore with 100% placement. We are the Best Blockchain Course Institute in Bangalore. Our Agile testing course and Certification courses are taught by working professionals who are experts in Blockchain.

Blockchain Training in Bangalore

Blockchain course in bangalore

Blockchain in bangalore

Blockchain classes in bangalore

Blockchain course institute in bangalore

Agile testing course and Certification course syllabus

best Blockchain course

Blockchain course centers

IT Software Training Institute said...

Blockchain Course in Bangalore with 100% placement. We are the Best Blockchain Course Institute in Bangalore. Our Agile testing course and Certification courses are taught by working professionals who are experts in Blockchain.

Blockchain Training in Bangalore

Blockchain course in bangalore

Blockchain in bangalore

Blockchain classes in bangalore

Blockchain course institute in bangalore

Agile testing course and Certification course syllabus

best Blockchain course

Blockchain course centers

BANDARCEMEKU said...

download idn poker
idn poker apk
cara daftar idn poker

IDN POKER said...


ceme online
bandar ceme
idn poker

prinfo12 said...

nice information thanks for sharing
Best SEO and Digital Marketing Agency/company in Bangalore!


Best SEO and Digital Marketing Agency/company in Bangalore!


Best SEO and Digital Marketing Agency/company in Bangalore!


Best SEO and Digital Marketing Agency/company in Bangalore!


Best SEO and Digital Marketing Agency/company in Bangalore!


Best SEO and Digital Marketing Agency/company in Bangalore!


Best SEO and Digital Marketing Agency/company in Bangalore!

resultangka88 said...

result sydney
buku mimpi 3d
result sidney

Oflox said...

Really Nice Post & Thanks for sharing.
Oflox Is The Best Website Designing Company In Dehradun

Training for IT and Software Courses said...

Thank you for excellent article.You made an article that is interesting.

SAP ABAP Online Training

SAP ABAP Classes Online

SAP ABAP Training Online

Online SAP ABAP Course

SAP ABAP Course Online

Recomendasi Game Terbaik said...

Situs Main Judi Slot Online Terbaik Ayo Gabung dan Dapatkan Berbagai Macam Bonus Menarik dari ign88win! Agen Judi Slot Online Indonesia Terbaik!

herderaba said...

Dapatkan promo dan bonus menarik dari agen judi bola terpercaya serta agen bola terbaik di indonesia maxi88, karena hanya maxi88 situs judi online terbesar saat ini yang menyediakan berbagai macam permainan seperti casino online dan juga agen sbobet online

https://www.evernote.com/shard/s497/sh/3b951cf4-2aa9-5c21-9cf4-51c089298b27/8b7f86ba01a34a5504e1d9cfae0e59b6
https://vistaweb.isi.edu/knowledgeoofpunk
http://www.classifiedadsubmissionservice.com/classifieds/user/profile/106358
http://forum1.shellmo.org/member.php?action=profile&uid=617473
http://forums.eatmore2weighless.com/member.php?action=profile&uid=98664

Mr Eric said...

Really I enjoy your site with effective and useful information. It is included very nice post with a lot of our resources. thanks for share. I enjoy this post.

Local SEO Agency Gloucester
Local SEO Company Uk
Local SEO Company Gloucester
Best SEO Company Uk

Bandar Togel Online said...

sudah di pastikan bakal menang kalau anda bermain di Bandar Togel Online kingdomgrup

juragan69 said...

Situs Judi Slot Online Indonesia Juragan69. Dapatkan Berbagai Macam Games Judi Slot Online Uang Asli Bersama Juragan69 dan Dapatkan Berbagai Macam Bonus Menarik dari Juragan69

Situs Agen Slot Online Terbesar di Indonesia 2021
Situs Judi Slot Online Uang Asli Gampang Menang
Situs Game Slot Online Terpercaya
Judi Slot Online Jackpot Terbaik
Taruhan Slot Online Resmi 2021 Terbesar

Ligaimpian said...

Untuk memilih Situs Togel dan Dadu yang tepat dan juga berkualitas pastinya tidaklah mudah. Oleh karena itu, perhatikan selalu pemilihan situsnya. Kalau mau main dengan aman dan nyaman, segera pilih Ligaimpian. Karena hanya di situs Ligaimpian saja yang bisa diandalkan untuk meraih kemenangan atau profit besar.

Magnum777 said...

Yuk main slot di Magnum777 Agen Judi Slot terbaik dan berpengalaman yang ada di Indonesia. Kenapa Magnum777 menjadi agen judi terbaik, tidak lain Magnum777 menjadi situs judi slot terbaik karena memiliki fitur yang sangat lengkap dan juga mudah untuk dimainkan. Ayo segera main slot di Magnum777 untuk mendapatkan banyak uang.

win1000x said...

Orang-orang sekarang semakin banyak yang suka bermain judi online. Sehingga banyak sekali bermunculan Agen Judi Online yang baru yang biasanya belum bisa terpercaya karena belum resmi. Oleh karena itu jangan sampai salah pilih lebih baik kalian main di win1000x saja jika ingin mendapatkan keuntungan besar.

Shinderu said...

Banyak cara untuk daftar situs judi online terpercaya Jagoan69. Salah satunya anda bisa mengunjungi link alternatif yang ada melalui mesin pencarian browser pada handphone ataupun komputer. Atau anda bisa menghubungi kontak offcial kami seperti WA,livechat, ataupun media sosial.

Jagoan69

jagoanbos said...

Situs judi slot online jackpot terbesar Jagoan69 menyediakan banyak link alternatif untuk kemudahan anda dalam daftar dan login situs slot online gacor di Indonesia.

Jagoan69
Jagoan69
Jagoan69

cemeku said...

CEMEKU merupakan situs judi slot online resmi terpercaya dengan pilihan provider terbaik dan mudah jackpot yang menyediakan berbagai game terlengkap.
cemeku

Anonymous said...

Want more content like this. Thankyou very much for make the post. https://heylink.me/COLEK77SLOT

Mulemasters said...

Great article! I appreciate you sharing valuable information.
visit:
Mulesoft Training In Hyderabad

Anonymous said...

Tipe permainan slot gacor yang mempunyai RTP live slot tertinggi sangat bervariasi. Terdapat puluhan hingga ratusan game slot yang bisa kalian mainkan guna dapat jackpot terbesar slot online terpercaya. Oleh karena itu segera mainan bersama kami. https://heylink.me/PUSAKA99/