Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have set my informix database server to listen to port 4725/tcp in the /etc/services file. SELinux is disabled. No other dameon is using this port. I can telnet to "localhost 4725" but when I try it from another PC in the office the connection is refused. The PC is in the /etc/hosts, hosts.allow and also put it in hosts.equiv. Also made sure it was not in hosts.deny. I ran "netstat -pantu | grep LISTEN" and saw "tcp 0 0 127.0.0.1:4725 0.0.0.0:* LISTEN 3625/sqlexced" along with other stuff. I can telnet to port 22 from the remote PC.
Any ideas on how to resolve this problem will be greatly appreciated.
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761
Rep:
Code:
tcp 0 0 127.0.0.1:4725 0.0.0.0:* LISTEN
From what you've provided it appears that the service is only listening on the localhost and/or not the local network interface, that's why connections work from localhost and not the network.
I don't use Informix, but doing some research I think you need to check your /etc/hosts file. Make sure your network interface IP address (i.e. not 127.0.0.1) with FQDN hostname is listed in /etc/hosts. You can have 127.0.0.1, but make sure it only shows with the localhost name.
No it is not the firewall, it is because infomix is binding to the localhost, this means you cannot access it over the network only from the machine itself, if you want to access it over the network you need to change the configuration to get it to listen to all addresses.
Thanks for the heads up. I went back and checked the hosts file again and believe that was where the problem was. I made a change and the service is now binding itself to the servers ipaddress at the correct port, not localhost as before. I can now get a telnet connection to the port that was refusing the connection before. I am now moving on to another problem that I will start a new thread on.
Thanks for the hint! I was having trouble getting IBM's Design Studio to connect to an Informix 10.0.UC5 database running on Centos 4 so I could crossload data into a DB2 Data Warehouse Edition (now "InfoSphere Warehouse") database. I could connect from the Design Studio installation on the Informix server, but from the workstations (Win XP and Centos 4) I kept getting a jdbc "InvocationTargetException" error. I chased around for a day thinking it was jdbc, but a tech put me onto the fact that nothing was listening at the port (nmap helped me with that). That led me to this thread, and making the appropriate entry in the /etc/hosts file on the Informix server solved it! Thanks!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.