CodeIgniter Forums
Can't load same database in different IP address - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Can't load same database in different IP address (/showthread.php?tid=43751)



Can't load same database in different IP address - El Forum - 07-21-2011

[eluser]Unknown[/eluser]
my ip.. 192.168.5.3

database server 192.168.5.212 and 10.10.2.2 (use SQL SERVER 2005)

i can load database from 192.168.5.212
but, i can't load the database from 10.10.2.2..

username and password are similar..
i only need change the hostname..

Code:
A Database Error Occurred

Unable to connect to your database server using the provided settings.

Filename: core/Loader.php

Line Number: 224



Can't load same database in different IP address - El Forum - 07-22-2011

[eluser]cpass78[/eluser]
10.10.*.* is local also, try adding it to your hosts file like 10.10.2.2 localhost. Also im not sure of security in sql server but is it (can it be) configured to listen on 10.10.2.2 ?