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

Ping localhost not work when not connected to the Internet.

17 views
Skip to first unread message

dan...@my-deja.com

unread,
Oct 14, 1999, 3:00:00 AM10/14/99
to
Hi,

I have a Windows 95 system. When I make "ping localhost" in the MS-DOS
prompt I get the message :

"Bad IP address localhost."

I have TCP/IP installed. I am able to connect to the Internet, and so
ping any address (by name or IP) with no problems. When I am connected
with the Internet the ping localhost command works fine.
In the file hosts.sam I have the line :

127.0.0.1 localhost

What is wrong ?

Thanks and sorry my bad English.


Sent via Deja.com http://www.deja.com/
Before you buy.

catcat

unread,
Oct 14, 1999, 3:00:00 AM10/14/99
to dan...@my-deja.com
First attempt, rename the file "hosts.sam" to "hosts", no extension, it's
an Unix tradition. (the .sam extension is added by MS means "samples")

Have a good one

dan...@my-deja.com

unread,
Oct 14, 1999, 3:00:00 AM10/14/99
to
In article <380588C4...@axionet.com>, catcat <cat...@axionet.com>
wrote:

> First attempt, rename the file "hosts.sam" to "hosts", no extension,
it's
> an Unix tradition. (the .sam extension is added by MS means "samples")
>

I made this but it did not work. The first attempt failed. We go to
see second :-)
Thanks catcat.

> > I have a Windows 95 system. When I make "ping localhost" in the
MS-DOS
> > prompt I get the message :
> >
> > "Bad IP address localhost."

> > ...

Kent W. England

unread,
Oct 14, 1999, 3:00:00 AM10/14/99
to
Do you have a windows\hosts file with no extension? If not, copy the
hosts.sam file over to hosts (with no extension) and then retry. If you
already have a hosts file, it is missing the localhost entry. Add it or
overwrite it with hosts.sam.

--
Kent W. England, MS-MVP for Win9x networking
--
For a step-by-step guide to installing your own small
office network and shared Internet access using TCP/IP,
see www.6SigmaNets.com.
Need a good answer quick? Post a well constructed
question. See http://members.home.com/mvp-l/goodpost.htm
for tips and suggestions.


<dan...@my-deja.com> wrote in message
news:7u3cml$mss$1...@nnrp1.deja.com...
> Hi,


>
> I have a Windows 95 system. When I make "ping localhost" in the MS-DOS
> prompt I get the message :
>
> "Bad IP address localhost."
>

catcat

unread,
Oct 14, 1999, 3:00:00 AM10/14/99
to dan...@my-deja.com
What about ping your computer's IP address?

Have a good one

dan...@my-deja.com wrote:

> In article <380588C4...@axionet.com>, catcat <cat...@axionet.com>
> wrote:
> > First attempt, rename the file "hosts.sam" to "hosts", no extension,
> it's
> > an Unix tradition. (the .sam extension is added by MS means "samples")
> >
>
> I made this but it did not work. The first attempt failed. We go to
> see second :-)
> Thanks catcat.
>

> > > I have a Windows 95 system. When I make "ping localhost" in the
> MS-DOS
> > > prompt I get the message :
> > >
> > > "Bad IP address localhost."

dan...@my-deja.com

unread,
Oct 15, 1999, 3:00:00 AM10/15/99
to

> Do you have a windows\hosts file with no extension? If not, copy the
> hosts.sam file over to hosts (with no extension) and then retry. If
you
> already have a hosts file, it is missing the localhost entry. Add it
or
> overwrite it with hosts.sam.
>

I did it. See message 2 and 3 of this thread in Dejanews. Don't work.
Thanks.

dan...@my-deja.com

unread,
Oct 15, 1999, 3:00:00 AM10/15/99
to

> What about ping your computer's IP address?

Ping 127.0.0.1 works fine. I don't have other IP address because it is
a standalone computer.

dan...@my-deja.com

unread,
Oct 20, 1999, 3:00:00 AM10/20/99
to
In article <7u3cml$mss$1...@nnrp1.deja.com>,

dan...@my-deja.com wrote:
> I have a Windows 95 system. When I make "ping localhost" in the MS-DOS
> prompt I get the message :
>
> "Bad IP address localhost."

I did not arrive at no solution for the problem. But I stow making
some tests that can become the cause of the problem clearest.
The computer where this is happening is not connected to a network. It
possesss only the dial-up adapter and the protocol TCP/IP.
Protocol TCP/IP is configured to get the address IP automatically,
therefore this is the configuration for access my ISP. If in the
configuration of the TCP/IP I to place a fixed IP address I am able to
make ping localhost when off-line successfully. This was only one test,
cannot leave thus therefore in this in case that I cannot have access
the Internet.
Thus it seems that the Windows demands that I have a protocol TCP/IP
with fixed address to function.
The question is: how I make this to function if I do not have network
card ?

0 new messages