cancel
Showing results for 
Search instead for 
Did you mean: 

change ports to localhost

aaron_bru
Champ in-the-making
Champ in-the-making
Hi,
I'm trying to make all the Alfresco ports listen on localhost instead of all adapters for security. I've changed almost all except for 2 (random port numbers) are still showing up in netstat:

tcp        0      0 :::50330                :::*                    LISTEN      21115/java         
tcp        0      0 :::60004                :::*                    LISTEN      21115/java         

I can't figure out what services these ports are from, or how to change them to listen on localhost (or disable them).
I've already tried the ports in alfresco-global.properties, remote-services-context.xml, conf/server.xml
and looked around in JMX, and spend a few hours googling and reading the docs.

Any help would be appreciated.
-Aaron

<blockcode>
$ netstat -nlptu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name  
tcp        0      0 127.0.0.1:8009          0.0.0.0:*               LISTEN      21115/java         
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      30828/mysqld       
tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      21115/java         
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      4012/nginx         
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      12335/sshd         
tcp        0      0 127.0.0.1:8100          0.0.0.0:*               LISTEN      21232/soffice.bin  
tcp        0      0 127.0.0.1:8005          :::*                    LISTEN      21115/java         
tcp        0      0 127.0.0.1:50501         :::*                    LISTEN      21115/java         
tcp        0      0 127.0.0.1:50502         :::*                    LISTEN      21115/java         
tcp        0      0 127.0.0.1:50504         :::*                    LISTEN      21115/java         
tcp        0      0 127.0.0.1:50505         :::*                    LISTEN      21115/java         
tcp        0      0 127.0.0.1:50506         :::*                    LISTEN      21115/java         
tcp        0      0 127.0.0.1:50508         :::*                    LISTEN      21115/java         
tcp        0      0 :::22                   :::*                    LISTEN      12335/sshd         
tcp        0      0 :::631                  :::*                    LISTEN      1/init             
tcp        0      0 :::50330                :::*                    LISTEN      21115/java         
tcp        0      0 :::60004                :::*                    LISTEN      21115/java         
tcp        0      0 127.0.0.1:50500         :::*                    LISTEN      21115/java         
udp        0      0 0.0.0.0:631             0.0.0.0:*                           1/init             

</blockcode>
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
They are probably randomly assigned.

AFAIK those particular values are not configured anywhere.   They could be data ports for some protocol?

aaron_bru
Champ in-the-making
Champ in-the-making
As I mentioned in my post, they are randomly assigned. The problem is figuring out where they come from in tomcat/Alfresco and changing the config.