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\Debug>test 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 > > D:\Proj

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 (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, Dns.Ge

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 pro

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

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: > > If you provide IP, there's no hostname. > > Yes, but Dns.GetHostEntry does a reverse lookup on your IP to *get* the > hostname. Have a look in Reflector -- it ends up calling gethostbyaddr on > your address. Yep, but internally. Then you get

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

2007-08-20 Thread Dean Harding
> If you provide IP, there's no hostname. Yes, but Dns.GetHostEntry does a reverse lookup on your IP to *get* the hostname. Have a look in Reflector -- it ends up calling gethostbyaddr on your address. Dean. - This SF.net

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 co

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

2007-08-17 Thread Jiri Cincura
On 8/17/07, Dean Harding <[EMAIL PROTECTED]> wrote: > > > > > Actually, this is a problem I noticed in some of my own code as well. The > solution is to try and parse the string as an IP address before calling > Dns.GetHostEntry, like so: > > > I have 2 NICs in my notebook too. I don't have this p

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

2007-08-17 Thread Dean Harding
]; } Or something (I don't remember the exact syntax). Dean. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cosmin Sandu Sent: Friday, 17 August 2007 10:20 PM To: firebird-net-provider@lists.sourceforge.net Subject: Re: [Firebird-net-provider] Connection problem fro

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

2007-08-17 Thread Cosmin Sandu
I did some more tests by debugging with the sources of FirebirdSql.Data.FirebirdClient (version 2.5.0 Alpha 1, the latest) and I isolated the error to this: in: GdsConnection.cs function: private IPAddress GetIPAddress(string dataSource, AddressFamily addressFamily) the line: IPAddress[] add

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 .

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 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 Si

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 Stud

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. >

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 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: Splunk

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

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 th

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 probl

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 firew

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 f

[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 Edition