Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Why will IIS work with localhost, but not with IP address?

0 views
Skip to first unread message

nathanfi

unread,
Oct 25, 2005, 4:31:03 PM10/25/05
to
My computer have windows xp sp2 with iis 5.1
if i give 127.0.0.1 or localhost it's ok if i give ip 192.168.16.2 (local
lan) i
got "Cannot find server or DNS error" Mycomputer wos part from a local
network with server windows 2000 sp4
but i login localy without server.

Yuval Sinay

unread,
Oct 25, 2005, 5:25:03 PM10/25/05
to
You should add the DNS servers IP of your ISP + the local IP of the defualt
gateway..

--
Best Regards,

Yuval Sinay
MS MVP


"nathanfi":

nathanfi

unread,
Oct 25, 2005, 6:30:03 PM10/25/05
to

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator.FINKEL2000A.000>ipconfig

Windows IP Configuration


Ethernet adapter Wireless Network Connection 2:

Media State . . . . . . . . . . . : Media disconnected

Ethernet adapter Local Area Connection 4:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.16.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter Local Area Connection 6:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.0.100
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1

C:\Documents and Settings\Administrator.FINKEL2000A.000>
"
אין לי גישה ל website מקומי iis5.1 מהמחשב אצמו אם כתובת מקומי של ה lan
ip= 192.168.16.2 or 192.168.0.100
יש לי גישה אם ip= 127.0.01 or localhost
sp2: http port 80 open = firewall

Yuval Sinay":

Yuval Sinay

unread,
Oct 26, 2005, 2:29:02 AM10/26/05
to
כדי לא לסבך את עצמך השתמש בכרטיס רשת יחיד, וודא שההגדרות שלו נכונות דרך
ipconfig /all + הגדר את שם המחשב + כתובת ה IP בקובץ HOST FILE:

http://accs-net.com/hosts/what_is_hosts.html

בהצלחה

nathanfi

unread,
Oct 26, 2005, 4:26:03 AM10/26/05
to
# Copyright (c) 1993-1999 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

127.0.0.1 localhost
192.168.16.2 Finkel-new
192.168.0.100 Finkel-new


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator.FINKEL2000A.000>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : FINKEL-NEW
Primary Dns Suffix . . . . . . . : Finkel2000A.Local
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : Finkel2000A.Local

Ethernet adapter Local Area Connection 6:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : SiS 900-Based PCI Fast Ethernet
Adap
ter
Physical Address. . . . . . . . . : 00-0E-A6-2D-FD-9F
Dhcp Enabled. . . . . . . . . . . : No


IP Address. . . . . . . . . . . . : 192.168.0.100
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1

DNS Servers . . . . . . . . . . . : 212.150.49.10

Ethernet adapter Local Area Connection 4:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8029(AS) PCI Ethernet
Ada
pter #2
Physical Address. . . . . . . . . : 00-C0-DF-EE-6F-67
Dhcp Enabled. . . . . . . . . . . : No


IP Address. . . . . . . . . . . . : 192.168.16.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

DNS Servers . . . . . . . . . . . : 212.150.48.169
192.168.16.2
Primary WINS Server . . . . . . . : 192.168.16.4

Ethernet adapter Wireless Network Connection 2:

Media State . . . . . . . . . . . : Media disconnected

Description . . . . . . . . . . . : D-Link AirPlus DWL-520+ Wireless
PCI
Adapter
Physical Address. . . . . . . . . : 00-11-95-05-3E-7E

C:\Documents and Settings\Administrator.FINKEL2000A.000>

"Yuval Sinay":

nathanfi

unread,
Oct 26, 2005, 12:34:06 PM10/26/05
to
מי אז ש קיבלתי logfile ב 15.03.2005 iis5.1 :
#Software: Microsoft Internet Information Services 5.1
#Version: 1.0
#Date: 2005-03-15 18:52:49
#Fields: time c-ip cs-method cs-uri-stem sc-status
18:52:49 192.168.16.4 GET /iisstart.asp 200
18:52:50 192.168.16.4 GET /pagerror.gif 200
18:53:52 192.168.16.2 GET /iisstart.asp 302
18:53:52 192.168.16.2 GET /localstart.asp 401
18:54:42 192.168.16.2 GET /localstart.asp 200
18:54:42 192.168.16.2 GET /winXP.gif 200
18:54:42 192.168.16.2 GET /web.gif 200
18:54:42 192.168.16.2 GET /print.gif 200
18:54:42 192.168.16.2 GET /mmc.gif 200
18:54:42 192.168.16.2 GET /warning.gif 200
18:54:42 192.168.16.2 GET /help.gif 200
18:55:03 192.168.16.27 GET /iisstart.asp 200
18:55:03 192.168.16.27 GET /pagerror.gif 200
18:55:24 192.168.16.2 GET /iisstart.asp 302
18:55:24 192.168.16.2 GET /localstart.asp 401
18:56:09 192.168.16.2 GET /localstart.asp 200
18:56:09 192.168.16.2 GET /winXP.gif 304
18:56:09 192.168.16.2 GET /web.gif 304
18:56:09 192.168.16.2 GET /warning.gif 304
18:56:09 192.168.16.2 GET /help.gif 304
18:56:09 192.168.16.2 GET /print.gif 304
18:56:09 192.168.16.2 GET /mmc.gif 304
18:56:43 192.168.16.27 GET /localstart.asp 401
18:56:59 192.168.16.27 GET /localstart.asp 302
18:56:59 192.168.16.27 GET /iisstart.asp 200
18:58:33 192.168.16.27 GET /localstart.asp 302
18:58:33 192.168.16.27 GET /iisstart.asp 200
היום iis5.1 לא "מרגיש" גישה דרך IP= 192.168.16.2
iis5.1 "מרגיש" רק הגישה דרך IP= 127.0.0.1 OR localhost
וניפתח !!!! דוגמה ל logfile מי היום :
#Software: Microsoft Internet Information Services 5.1
#Version: 1.0
#Date: 2005-10-26 15:51:54
#Fields: time c-ip cs-method cs-uri-stem sc-status
15:51:54 127.0.0.1 GET /index.htm 304
15:51:54 127.0.0.1 GET /index_files/image306.gif 304
15:51:54 127.0.0.1 GET /index_files/image336.wmz 304
15:51:54 127.0.0.1 GET /index_files/image343.png 304
15:53:14 127.0.0.1 GET /index_files/image336.wmz 304
15:53:14 127.0.0.1 GET /index_files/image343.png 304
15:55:02 127.0.0.1 GET /index.htm 304
15:55:02 127.0.0.1 GET /index_files/image306.gif 304
15:55:02 127.0.0.1 GET /index_files/image336.wmz 304
15:55:02 127.0.0.1 GET /index_files/image343.png 304
15:55:49 127.0.0.1 GET /index_files/image336.wmz 304
15:55:49 127.0.0.1 GET /index_files/image343.png 304
16:05:42 127.0.0.1 GET /index_files/image336.wmz 304
16:05:42 127.0.0.1 GET /index_files/image343.png 304
"nathanfi"
:

nathanfi

unread,
Oct 29, 2005, 10:29:01 AM10/29/05
to
לכל המומחים: לא הצלחתי לפתור את הבעיה! המצב דומה לזה שהיה ב forum אחר :
http://www.developmentnow.com/g/59_2004_11_0_0_26586/Website-Access-problem.htm
אבל אני לא מעונין להתקין מי חדש את מערכת העפלה !!
תודה מי ראש!!
"nathanfi":
0 new messages