Prev: NEw Way On Ur Mobile
Next: Placement of Constants
From: steen on 23 May 2010 14:58 Hey, I got a quick question regarding java code and ident service. If I just do a quick Socket connection to an ftp server, like Socket s = new Socket("127.0.0.1", 1234); the ftp-server doesnt receive an ident response, but if I from a prompt do a telnet 127.0.0.1 1234 the ftp-server does get an ident response. Can anyone point me to any info which can explain to me why that is and how I can get the ident response to work when connection from java also ? Thanks in advance Steen
From: John B. Matthews on 23 May 2010 15:37 In article <15aade9b-e97e-4be1-aa66-dd6091be0ba1(a)v37g2000vbv.googlegroups.com>, steen <steen(a)jost.dk> wrote: > I got a quick question regarding java code and ident service. > > If I just do a quick Socket connection to an ftp server, like Socket > s = new Socket("127.0.0.1", 1234); the ftp-server doesnt receive an > ident response, but if I from a prompt do a telnet 127.0.0.1 1234 the > ftp-server does get an ident response. > > Can anyone point me to any info which can explain to me why that is > and how I can get the ident response to work when connection from > java also ? RFC1413 - Identification Protocol: "This is a connection based application on TCP." <http://www.faqs.org/rfcs/rfc1413.html> -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
From: steen on 23 May 2010 15:44 On May 23, 9:37 pm, "John B. Matthews" <nos...(a)nospam.invalid> wrote: > > RFC1413 - Identification Protocol: "This is a connection based > application on TCP." > > <http://www.faqs.org/rfcs/rfc1413.html> > Yes thats the ident protocol, but what puzzles me is that when I do a TCP connection from java, apparently it doesnt register (or whatever telnet does to enable ident response) with the ident service. If there a property I need to set or something ? To be completely explicit, what I'm doing in my program is to make a connection using the apache commons FTPSClient, and I need the ftp server to get an ident response because otherwise it will refuse my connection. /Steen
From: Tom Anderson on 23 May 2010 19:24 On Sun, 23 May 2010, steen wrote: > On May 23, 9:37�pm, "John B. Matthews" <nos...(a)nospam.invalid> wrote: > >> RFC1413 - Identification Protocol: "This is a connection based >> application on TCP." >> >> <http://www.faqs.org/rfcs/rfc1413.html> > > Yes thats the ident protocol, but what puzzles me is that when I do a > TCP connection from java, apparently it doesnt register (or whatever > telnet does to enable ident response) with the ident service. If there a > property I need to set or something ? Shouldn't be. The ident daemon should take care of it all. Are you making the java and telnet connections from the same machine? Is it possible there isn't an ident daemon running on the machine where the java program is running? > To be completely explicit, what I'm doing in my program is to make a > connection using the apache commons FTPSClient, and I need the ftp > server to get an ident response because otherwise it will refuse my > connection. This is slightly shocking, given that ident offers about as much security as crypt. tom -- Pizza: cheap, easy, and portable. Oh, wait, that's me. Never mind. -- edda
From: John B. Matthews on 23 May 2010 19:36
In article <ecaef5a9-8ae9-44f5-b78a-51b82a7f14ac(a)o39g2000vbd.googlegroups.com>, steen <steen(a)jost.dk> wrote: > On May 23, 9:37 pm, "John B. Matthews" <nos...(a)nospam.invalid> wrote: > > > RFC1413 - Identification Protocol: "This is a connection based > > application on TCP." > > > > <http://www.faqs.org/rfcs/rfc1413.html> > > Yes thats the ident protocol, but what puzzles me is that when I do a > TCP connection from java, apparently it doesnt register (or whatever > telnet does to enable ident response) with the ident service. If > there a property I need to set or something ? Not one of which I'm aware. > To be completely explicit, what I'm doing in my program is to make a > connection using the apache commons FTPSClient, and I need the ftp > server to get an ident response because otherwise it will refuse my > connection. I assume you are using java.net.ServerSocket to implement the server. IIUC, such a server would have to implement RFC1413 explicitly. I don't know of an existing Java implementation. -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews> |