From: Warren Young Date: February 28 2008 9:06pm Subject: Re: Strange behavior of connect() when specifying a different port List-Archive: http://lists.mysql.com/plusplus/7480 Message-Id: <47C7224C.1090801@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit António Santos wrote: > > if (!conn.connect("wgwps", "127.0.0.1", "ans", "bns", 4040)) The address may be the problem. The C API recognizes special addresses like this and can interpret them oddly. Try "localhost" instead.