Avatar of APD Toronto
APD Toronto
Flag for Canada asked on

Can no longer access localhost with IP.

Hi Experts,

I used to be able to access my localhost via http://localhost or http://mylocalip

Recently I changed my router with my Internet company, but made sure that I set my IP to Reserved, and when I do ipconfig, I use the correct IP address that I was using, but I cannot access my localhost anymore with my IP.

I am not sure if this happened with my router change, or something else, but I would appreciate any help.
RoutersMicrosoft IIS Web ServerWindows 7

Avatar of undefined
Last Comment
Wayne88

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
timgreen7077

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
APD Toronto

ASKER
In the new router I set it to reserved, then I checked ipconfig it shows the proper IP.

I am not sure what you mean re DHCP, I am not a network person.
timgreen7077

what is the local host you are referring to? Is it a computer or router or what?
APD Toronto

ASKER
localhost is a computer
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
timgreen7077

Ok, so what are you attempting to access using http://localhost or http://mylocalip, do you have an IIS server running on the computer or anything? This will not show you anything unless you have some type of web service running.
SOLUTION
Martin Miller

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Wayne88

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
APD Toronto

ASKER
Below is my hosts file, and I uncommented the last 2 lines, but still I cannot access http://192.168.2.200

http://localhost and http://127.0.0.1 work.

The reason why I need http://192.168.2.200 is because I am a web developer and need to test from different devices. This used to work up until 2 weeks ago.

# Copyright (c) 1993-2009 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

# localhost name resolution is handled within DNS itself.
	127.0.0.1       localhost
	::1             localhost

Open in new window

APD Toronto

ASKER
It was my Avast Firewall

Thank you!
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Wayne88

Glad you got it solved and thanks for getting back.  Cheers!