#1  
Old 5th June 2005, 17:51
thomilla thomilla is offline
Junior Member
 
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default List of servers

How can I see what servers are running on my system, and on which port?
Reply With Quote
Sponsored Links
  #2  
Old 5th June 2005, 19:27
joe joe is offline
Junior Member
 
Join Date: Apr 2005
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Default

You could either use nmap on yourself or use the netstat command.
__________________
Joe Topjian
email: joe@adminspotting.net
web: http://adminspotting.net
Reply With Quote
  #3  
Old 7th June 2005, 11:40
deedee deedee is offline
Junior Member
 
Join Date: May 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

I'd run
Code:
netstat -tap
It will show a list with lines like this:

Code:
tcp        0      0 *:mysql                 *:*                     LISTEN      17735/mysqld
where mysql is the port. If you want to know the number of the port, run

Code:
grep mysql /etc/services
It'll show

Code:
mysql           3306/tcp                        # MySQL
mysql           3306/udp                        # MySQL
so you know the MySQL port is 3306.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 14:38.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.