Home > Archive > MS SQL Server ODBC > January 2006 > Can't connect using 'localhost' but '127.0.0.1' works









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Can't connect using 'localhost' but '127.0.0.1' works
Patrick Burleson

2006-01-12, 8:23 pm

I'm trying to connect to SQL Server using the string 'localhost', but I
always get a timeout error using either Query Analyzer or ADO. But if I
change the string to 127.0.0.1, it works.

A 'nslookup localhost' returns 127.0.0.1. If I run 'telnet localhost
1433', it connects. Any idea why I might not be able to use the string
'localhost'?

Thanks,
Patrick

Patrick Burleson

2006-01-12, 8:23 pm

I'm sorry, I posted this to the wrong group, but if anyone has the
answer, please let me know.

Thanks,
Patrick

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com