Thursday, March 11, 2010

how save and retrieve server IP in host file

In the run prompt type 'Drivers'

Then open the c:\windows\system32\drivers folder
select 'etc' folder and open the 'host' file.

add the IP and name in the host file
10.168.1.171 serverhost

Then we can easily use the connection string like

conString = "server=serverhost;port=3302;user id=sabiq;password=xxxx;persist security info=True;databjavascript:void(0)ase=readymadewh;charset=utf8";

No comments: