Re: [Firebird-net-provider] Connection problem from Win

2007-08-22 Thread Carlos Guzmán Álvarez
Hello: Should be: if (IPAddress.TryParse(dataSource, out ipaddress)) { return ipaddress; } Thanks for the hint, the change should be now in SVN :) -- Carlos Guzmán Álvarez Vigo-Spain Blog: http://carlosga.wordpress.com/ FirebirdClient :

Re: [Firebird-net-provider] Connection problem from Win 2003 Standard

2007-08-21 Thread Jiri Cincura
On 8/21/07, Dean Harding [EMAIL PROTECTED] wrote: Here is the output for two different addresses: D:\Projects\TestProject\bin\Debugtest 10.0.0.33 Testing: 10.0.0.33 Hostname: xx Address: fe80::69eb:837:6a0:5c66%8 Address: fe80::5efe:10.0.0.33%11 Address: 10.0.0.33

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Jiri Cincura
On 8/21/07, Carlos Guzmán Álvarez [EMAIL PROTECTED] wrote: Hello: It's not a big change and it's only useful in certain circumstances, but it *is* a better solution. this is what the provider is doing right now ( i have checked it from v2.5, but i think v2.0+ should be doing the same

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Dean Harding
The change is, that you're first doing stuff with DNS and else the IP direct. Maybe trying first IP (we can expect, that if somebody provides IP, (s)he's know it and knows what's doing), so we needn't to check anything else. The possible error in fact will occur during connection anyway.

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Jiri Cincura
On 8/21/07, Dean Harding [EMAIL PROTECTED] wrote: Notice that in this case it returns the addresses in the same order, regardless of what IP I originally pass to Dns.GetHostEntry. From my I think it' because it doesn't matter what IP you choose to connect to server (from routing POV). Of

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Carlos Guzmán Álvarez
Hello: I don't know, where Carlos is right now. But when he doesn't drop the ticket till evening, I'll create changes and do tests. I'm at job and can't do the change, but we can add it to 2.5 sources and see what happens ;) -- Best regards Carlos Guzmán Álvarez Vigo-Spain

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Jiri Cincura
On 8/21/07, Carlos Guzmán Álvarez [EMAIL PROTECTED] wrote: Hello: I don't know, where Carlos is right now. But when he doesn't drop the ticket till evening, I'll create changes and do tests. I'm at job and can't do the change, but we can add it to 2.5 sources and see what happens ;) Big

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Carlos Guzmán Álvarez
Hello: OK, I'll commit this to SVN during evening. hehe i have readed this now after i have the change in my local tree hahahaha, this way: private IPAddress GetIPAddress(string dataSource, AddressFamily addressFamily) { if (!IPAddress.Parse(hostname, out

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Carlos Guzmán Álvarez
Hello: Sorry this way ;) private IPAddress GetIPAddress(string dataSource, AddressFamily addressFamily) { IPAddress ipaddress = null; if (!IPAddress.TryParse(dataSource, out ipaddress)) { return ipaddress; }

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Jiri Cincura
On 8/21/07, Carlos Guzmán Álvarez [EMAIL PROTECTED] wrote: Hello: Sorry this way ;) Looks good. -- Jiri {x2} Cincura (Microsoft Student Partner) http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com - This SF.net

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Carlos Guzmán Álvarez
Hello: Sorry this way ;) Looks good. Thanks !!! i will do the commit a little later today !! XD -- Carlos Guzmán Álvarez Vigo-Spain Blog: http://carlosga.wordpress.com/ FirebirdClient : http://www.firebirdsql.org/ XMPP Client : http://code.google.com/p/xmppclient/ ohloh

Re: [Firebird-net-provider] Connection problem from Win

2007-08-21 Thread Dean Harding
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Guzmán Álvarez Sent: Wednesday, 22 August 2007 12:30 AM Cc: firebird-net-provider@lists.sourceforge.net Subject: Re: [Firebird-net-provider] Connection problem from Win Hello: Sorry this way ;) private

Re: [Firebird-net-provider] Connection problem from Win 2003 Standard

2007-08-20 Thread Jiri Cincura
On 8/20/07, Dean Harding [EMAIL PROTECTED] wrote: I have 2 NICs in my notebook too. I don't have this problem. And the Dns.GetHostEntry() returns (should) for IP the same IP, that's all. Actually, that's not true. Dns.GetHostEntry() actually queries the DNS server to get the name

Re: [Firebird-net-provider] Connection problem from Win 2003 Standard

2007-08-20 Thread Dean Harding
Yep, but internally. Then you get back your IP (the IP you provided) and maybe some others. But this isn't the problem. He has 2 NICs on client not on server (if I understand). But that has not been my experience: I have seen it return a *different* IP. Also, if you do not have reverse DNS set

Re: [Firebird-net-provider] Connection problem from Win 2003 Standard

2007-08-20 Thread Jiri Cincura
On 8/20/07, Dean Harding [EMAIL PROTECTED] wrote: But that has not been my experience: I have seen it return a *different* IP. Also, if you do not have reverse DNS set up for that IP, then you won't get any results at all. For example, here is a MySQL bug related to I've tested this. I

Re: [Firebird-net-provider] Connection problem from Win 2003 Standard (SOLUTION)

2007-08-20 Thread Cosmin Sandu
First of all, thank you for all your responses. All the different ideas conducted me to the solution. I solved the problem by replacing Dns.GetHostEntry() in GdsConnection.cs, function private IPAddress GetIPAddress(string dataSource, AddressFamily addressFamily) with it's older brother,

Re: [Firebird-net-provider] Connection problem from Win 2003 Standard

2007-08-20 Thread Dean Harding
I've tested this. I provided IP, that definetelly isn't active in my netwrok and isn't on my DNS. I got result without problems. I can send you video. :) Alright. Here is a program that I ran on my computer: public static void Main(string[] args) { string address = args[0];

Re: [Firebird-net-provider] Connection problem from Win 2003 Standard

2007-08-19 Thread Dean Harding
I have 2 NICs in my notebook too. I don't have this problem. And the Dns.GetHostEntry() returns (should) for IP the same IP, that's all. Actually, that's not true. Dns.GetHostEntry() actually queries the DNS server to get the name corresponding to that IP, and then returns all the IP addresses

Re: [Firebird-net-provider] Connection problem from Win 2003 Standard Ed using .NET provider for Firebird

2007-08-16 Thread Jiri Cincura
You have probably firewall on. -- Jiri {x2} Cincura (Microsoft Student Partner) http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to

Re: [Firebird-net-provider] Connection problem from Win 2003

2007-08-16 Thread Cosmin Sandu
There is no firewall on. There are a bunch of applications written in Delphi 7 which connect directly with the interbase server on port 3050. The only problem I have is with applications which connects using FBProvider and only from the respective machine. All the services are started, the

Re: [Firebird-net-provider] Connection problem from Win 2003

2007-08-16 Thread Carlos Guzmán Álvarez
Hello: I forgot to mentioned another particular thing about the Windows 2003 machine. It has 2 network adapters (one connects to the LAN the other to a NAS storage). I've tried even to set to disable the network adapter to the NAS. No change. No connection... It maybe a network problem

Re: [Firebird-net-provider] Connection problem from Win 2003

2007-08-16 Thread Jiri Cincura
On 8/16/07, Cosmin Sandu [EMAIL PROTECTED] wrote: There is no firewall on. There are a bunch of applications written in Delphi 7 which connect directly with the interbase server on port 3050. The only problem I have is with applications which connects using FBProvider and only from the

Re: [Firebird-net-provider] Connection problem from Win 2003 Standard

2007-08-16 Thread Cosmin Sandu
The database server is a Linux machine. I wouldn't know how to develop a server (using sockets) that runs on Linux so I could test the connection using sockets, but I don't think that the problem comes from here, since there are some Delphi - Interbase apps on the same Windows 2003 machine that

Re: [Firebird-net-provider] Connection problem from Win 2003 Standard

2007-08-16 Thread Jiri Cincura
What is CAS on C# application on server? It's full trust or some limited? -- Jiri {x2} Cincura (Microsoft Student Partner) http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com - This SF.net email is sponsored by:

Re: [Firebird-net-provider] Connection problem from Win 2003

2007-08-16 Thread Cosmin Sandu
It's a fresh installation, so there was nothing modified in the CAS Settings. Should I give it a try with the DDEX Provider instead of FIBConnection? Jiri Cincura [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What is CAS on C# application on server? It's full trust or some

Re: [Firebird-net-provider] Connection problem from Win 2003

2007-08-16 Thread Ottmar Muckenfuss
try to use localhost before your database path on the connection string eg: localhost:c:\my-db.fdb 2007/8/16, Cosmin Sandu [EMAIL PROTECTED]: There is no firewall on. There are a bunch of applications written in Delphi 7 which connect directly with the interbase server on port 3050. The only

Re: [Firebird-net-provider] Connection problem from Win 2003

2007-08-16 Thread Jiri Cincura
On 8/16/07, Ottmar Muckenfuss [EMAIL PROTECTED] wrote: try to use localhost before your database path on the connection string eg: localhost:c:\my-db.fdb localhost? If DB server is linux and client server W2k3? I don't think, this is the right way. ;) -- Jiri {x2} Cincura (Microsoft Student

Re: [Firebird-net-provider] Connection problem from Win 2003

2007-08-16 Thread Cosmin Sandu
My connection string looks like this: User=SYSDBA;Password=test;Database=/opt/interbase/test.gdb;DataSource=192.168.100.55; I also tried appending this to it, but with no luck: Port=3050;Dialect=3;Charset=NONE;Role=;Connection lifetime=15;Pooling=true;MinPoolSize=0;MaxPoolSize=50;Packet

Re: [Firebird-net-provider] Connection problem from Win 2003

2007-08-16 Thread Carlos Guzmán Álvarez
Hello: The database server is a Linux machine. I wouldn't know how to develop a server (using sockets) that runs on Linux so I could test the connection using sockets, but I don't think that the problem comes from here, since there are some *Delphi* - Interbase apps on the same Windows

Re: [Firebird-net-provider] Connection problem from Win 2003

2007-08-16 Thread Eduardo
Hi Just one idea. I think it is a good idea to use aliases. to resolve the path, when you are working between diferent S.O. Edit - aliases.conf Add entry - MyDataBase = /opt/interbase/test.gdb sConnectionString = @ServerType=0;DataSource=192.168.100.55;Port=3050;DataBase=MyDataBase

[Firebird-net-provider] Connection problem from Win 2003 Standard Ed using .NET provider for Firebird

2007-08-15 Thread Cosmin Sandu
Hello, I have a connection problem from a Windows 2003 Standard Edition using FibProvider from a C#2005 application to an Interbase Server. The system I use is the following: Application written in C#2005, .Net Framework 2.0, FibProvider 2.0, hosted on a Windows 2003 Standard