4 Replies Latest reply: May 15, 2012 2:17 AM by handat RSS

    failing to open 1090 on solaris 10

    935784
      Hi Gurus,
      I am trying to open port 1090 by editing /etc/services file and add an entry: http 1090/tcp
      and restart network services but when I telnet to that port I keep getting connection refused error message which means that this port is still closed.however the other default ports like port 80 works.any ideas will be most welcome.

      Solaris version:Generic_141444-09
      regards
        • 1. Re: failing to open 1090 on solaris 10
          alan.pae
          Adding it to /etc/services doesn't associate a daemon with the port. Usually it's easier to just tell the app which port to use.

          alan
          • 2. Re: failing to open 1090 on solaris 10
            bobthesungeek76036
            Are you trying to configure a web server to listen or port 1090? Or some other application? /etc/services is like /etc/hosts. It's just a name-to-number reference file. As in /etc/hosts, just because you have a number defined in the file doesn't make it available on the host. You must create a process to listen on that port just like you would need to configure an IP address on the network in the case of /etc/hosts.
            • 3. Re: failing to open 1090 on solaris 10
              SuperDupper
              Hi.

              By default all ports should open on Solaris.

              You need to configure your application to use port 1090.

              If you look at an exampe of apache2 web serer.

              # telnet 127.0.0.1 1090
              Trying 127.0.0.1...
              telnet: Unable to connect to remote host: Connection refused
              #

              Now we take the apache2 web server application and change its default port to 1090.

              Was

              Listen 80

              Now

              Listen 1090

              Now we refresh the apache2 application

              # svcadm refresh svc:/network/http:apache2

              Now we can telnet to the port.

              # telnet 127.0.0.1 1090
              Trying 127.0.0.1...
              Connected to 127.0.0.1.
              Escape character is '^]'.

              Now we can see that the port is active and listing.

              # netstat -an | grep 1090
              *.1090 *.* 0 0 49152 0 LISTEN
              127.0.0.1.32806 127.0.0.1.1090 49152 0 49152 0 ESTABLISHED
              127.0.0.1.1090 127.0.0.1.32806 49152 0 49152 0 ESTABLISHED
              *.1090 *.* 0 0 49152 0 LISTEN

              You need to tell which ever application you are using to look at port 1090.

              Hope this helps.
              • 4. Re: failing to open 1090 on solaris 10
                handat
                /etc/services is just a name mapping for the port so when you lookup the port it will show you the name instead of the number. I am guessing what you were trying to do is reconfigure the ipfilter to allow access to a port that you have already configured.