Yes, it was a iptables issue. Thanks! El mié, 21-02-2007 a las 16:59 -0300, Thiago Drechsel escribió: > Hi Pep. > > Regarding your second problem: > > You said you're using Fedora 6. This OS has iptables (firewall) started > when the system boots, by default. Maybe iptables is the reason you're > not able to connect to your sever. In order to solve you can: > > - Deactivate iptables: "service iptables stop" > OR > - Open the right port in the firewall. To do this, add the following > rule in /etc/sysconfig/iptables > -A RH-Firewall-1-INPUT -p tcp --dport 5400 -j ACCEPT > PS: Please, check the right chain name > Then "service iptables restart" > > Pep Ribal wrote: > > Hi all, > > > > I'm trying to make a simple application that just retrieves the FG > > status via the property tree. > > > > What I've done: I've started FG with the option --props=5400; I've > > startet a successful telnet session in the same host, and everything > > works fine. > > > > But I can't manage to make an app that does this connection. I create a > > socket. Then, the 'connect' call works fine. Then I use a 'write' call > > to send the string "ls" to FG. I've tried "help" and "ls\n" as well. > > They both work fine. But then I call 'read' (to see the help/ls > > results), and nothing is actually read: the program just blocks there > > without continuing execution. > > > > So I assume everything is working fine, except that I'm not using the > > protocol properly to retrieve information. I suppose FG is not giving > > information because I don't know how to ask him. What am I doing wrong? > > > > There is a second problem, related to my lack of knowledge of Linux > > server configuration: When I try to telnet FG from a foreign computer of > > the LAN, it just keeps saying "Trying 192.168.1.3...", so I think I need > > to configure the computer where FG is running so that it accepts the > > telnet request. How can I do it? > > > > I'm running Fedora 6. > > > > Thanks. > > Pep. > > > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > Flightgear-devel mailing list > > Flightgear-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/flightgear-devel > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Flightgear-devel mailing list > Flightgear-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/flightgear-devel >
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel