localhost IP - HELP
Greetings!
I have a big problem!
I am running IIS on my laptop (win2k prof.)
I have NIC with fixed IP (local 192.168.0.92)
BUT everytime when I am connected to my network I can use this IP as my default IP for IIS
But when I am offline (my network cable disconnected) than it changes to 127.0.0.1 but I need 192.168.0.92
How can I force my computer to use this IP (192.168....) also when I am not connected to my local network??
THANK YOU VERY VERY MUCH FOR ALL YOUR ANSWERS!
TradeViceroy posted this at 01:01 — 7th August 2001.
They have: 99 posts
Joined: Apr 1999
Well, 127.0.01 is the local IP for your machine ONLY. That's a default. I run Windows 2000 Professional and I know how it works.
When you are connected to a network, you receive an IP from the network to talk with it. Once you disconnect from the network, you lose the IP.
I'm not sure how I can "force" a computer to read the IP, but I'm sure there's a way. =)
TradeViceroy
Anonymous posted this at 02:10 — 7th August 2001.
They have: 5,633 posts
Joined: Jan 1970
I don't think you can have an IP address on an adapter(NIC) unless it's active. And with your network card down(not plugged in) it defaults to 127.0.0.1, which is TCP/IP standard to refer to yourself. It works always, even when plugged into another network.
Check with your local network person to see if a CAT5 loopback plug would do the trick.
mairving posted this at 02:40 — 7th August 2001.
They have: 2,256 posts
Joined: Feb 2001
Are you using a DHCP server?
Try this:
Open up Network Neighborhood on your desktop.
Right click Local Area Connection.
Select Properties.
Select TCP/IP / Properties.
Does it say obtain an IP Address automatically or does it actually have an IP address listed?
If it doesn't have an IP address, then that means that your server is assigning you an IP address.
A way that you may be able to work around this is to edit your /Winnt/System 32/Drivers/Etc/hosts file. I know that this works in Apache. If you added a line like this:
192.168.0.92 mymachine name (or domain name)
, it may work for you. Here is what I do for a local setup. Add a line like this:
192.168.1.3 xxx.mairving.com
In the browser window, when I type in xxx.mairving.com in the address bar, I am taken to 192.168.1.3, which in my case is the local server running Apache.
Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.