Jump to content

IIS does not work with localhost

Flux Azreal
Go to solution Solved by Jarsky,

You could probably just go ahead and add an entry to your hosts file. 

You can edit C:\Windows\System32\drivers\etc\hosts and add a line with the hostname, and then the local IP address of the server. 

 

So recently i had AT&T as my ISP, Then i changed to Xfinity Comcast cuz i moved to a new apartment. I port forwarded 80 (I used the preset HTTP since its the port i need)

And i can only view my website on other network but my own, what i mean by this is when i try to access my website locally it wont work (localhost, ip) though when a friend enters it (with their own network) it works for them, When i go into my localhost i get

image.png.4172900ca2e829206fd746146a156cd4.png

 

And when i try to go through with my DNS it simply wont even load it times out

Link to comment
Share on other sites

Link to post
Share on other sites

This sounds like an issue with NAT Loopback. It's a problem I experienced when getting a new Router from our ISP. I haven't dug too far into it to find what settings need to be changed but if it's fixable it's a setting within the router.

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Windows7ge said:

This sounds like an issue with NAT Loopback. It's a problem I experienced when getting a new Router from our ISP. I haven't dug too far into it to find what settings need to be changed but if it's fixable it's an settings within the router.

Oh good its fixable, do you remember anything were the setting it? like if its around Advanced settings or something? Thanks for your reply!

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Flux Azreal said:

Oh good its fixable, do you remember anything were the setting it? like if its around Advanced settings or something? Thanks for your reply!

I said IF it's fixable it's a setting in the router.

 

It's worthwhile to me to see if this can be enabled again so I'll have a gander at it.

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, Windows7ge said:

I said IF it's fixable it's a setting in the router.

 

It's worthwhile to me to see if this can be enabled again so I'll have a gander at it.

Ah, read it wrong the first time

Link to comment
Share on other sites

Link to post
Share on other sites

As far as I am currently seeing it looks like it's a tunable feature on some routers but not others.

 

I'm wondering if configuring a Static Route would do anything but I can't say for sure.

 

At this time I'm not seeing any setting related to NAT Loopback within my own Router and Googling it isn't telling me that it goes under a different name.

 

For my own applications it's not detrimental but for yours perhaps it is. Let's ask someone who may know more than I do about this. @mynameisjuan

Link to comment
Share on other sites

Link to post
Share on other sites

26 minutes ago, Windows7ge said:

As far as I am currently seeing it looks like it's a tunable feature on some routers but not others.

 

I'm wondering if configuring a Static Route would do anything but I can't say for sure.

 

At this time I'm not seeing any setting related to NAT Loopback within my own Router and Googling it isn't telling me that it goes under a different name.

 

For my own applications it's not detrimental but for yours perhaps it is. Let's ask someone who may know more than I do about this. @mynameisjuan

thank you ❤️

Link to comment
Share on other sites

Link to post
Share on other sites

You could probably just go ahead and add an entry to your hosts file. 

You can edit C:\Windows\System32\drivers\etc\hosts and add a line with the hostname, and then the local IP address of the server. 

 

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | EVGA GTX1070 FTW | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO | 12 x 8TB HGST Ultrastar He10 (WD Whitelabel) | 500GB Aorus Gen4 NVMe | 2 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, Jarsky said:

You could probably just go ahead and add an entry to your hosts file. 

You can edit C:\Windows\System32\drivers\etc\hosts and add a line with the hostname, and then the local IP address of the server. 

 

Thank you so much!

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×