check ports on server


 
Thread Tools Search this Thread
Special Forums Cybersecurity check ports on server
# 1  
Old 10-01-2008
check ports on server

Hi All,

I've been using this to verify if ports is open on a server. For example I would like to check port 5887, "telnet ip.of.server 5887" using on dos. If there's response on it then I can say it's open, if not then it's close.

Is that assumption accurate?

Thanks for any comments you may add.
# 2  
Old 10-01-2008
see here

Last edited by ghostdog74; 10-01-2008 at 12:26 PM..
# 3  
Old 11-06-2008
hi

I thing so this command use full

netstat -an | grep LISTEN gives me a list of open ports this command work fine please check u r port or open/ closed
# 4  
Old 11-22-2008
netstat -atnp -A inet | grep -i listen | uniq -c
shows what ports are open and what program is using them.
# 5  
Old 03-12-2009
netstat is usually best to use but lsof also shows similar info
ie.
lsof -i | grep port#
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Telnet of multiple server and ports

Hi, I do a telnet to a single server using command :telnet tibserver001 9640 The output i get is : Trying 10.19.... Connected to tibserver001 However i need to put all the servers in a single file and get the output to see if the server is connected or not. #! /bin/bash telnet... (3 Replies)
Discussion started by: samrat dutta
3 Replies

2. Shell Programming and Scripting

Check unused ports in a given range and assign an open one

Hi. I need to add code to my KSH script to automatically assign an open port number from a pre-defined range to an Oracle listener. Should I use: lsof -i or netstat -vatn or something else? Thanks. (9 Replies)
Discussion started by: user052009
9 Replies

3. AIX

How to check that rpcbind/portmap on AIX allowes updates from non privileged ports?

Hi, I am trying to implement a service on AIX based on ONCRPC protocal and I want to use a RPC library called oncrpc4j because it is a non-blocked i/o library. I found it works fine on my work machine (WIndows 7) but failed on my AIX work station. The author of oncrpc4j told me that check that... (1 Reply)
Discussion started by: derekhsu
1 Replies

4. Red Hat

Ports opened on remove server

Hi Gents, I know we can use nmap & telnet to find remove server ports, any other way for the same ? thanks (1 Reply)
Discussion started by: heman96
1 Replies

5. Shell Programming and Scripting

Script to check numerous ports / servers (Solaris native)

Hi I'd like to check that a bunch of firewall rules have been applied and, therefore, want to write a script that basically does the following: telnet serverA port1 telnet serverA port2 telnet serverB port1 telnet serverB port2 I would just compile the list in excel and run it as a... (2 Replies)
Discussion started by: jibberish
2 Replies

6. IP Networking

domain linux server, open ports?

Hi all - i currently run a domain strifex.net. This domain has a dedicated IP address and in having that, should be able to run a ventrilo VoIP server from it. I uploaded all the needed files etc... and am able to connect to it, if and only if i enable DMZ to my local machine - then i am able to... (1 Reply)
Discussion started by: ccfc1986
1 Replies

7. Shell Programming and Scripting

Script to automatically check ports in shell?

Good day, I'm new to linux environment...Is there any scripts available for me to check ports (lets say port 80 and 21) through shell with just a single commandline? Any response is very much appreciated.. thanks (4 Replies)
Discussion started by: arsonist
4 Replies

8. Shell Programming and Scripting

Check open ports every ...

Hello, i need a script (bash type maybe?..), which would check open ports on 127.0.0.1 and then compare open ports with "registered/allowed" port list and try to kill the program who uses unregistered ports. It would be great that script would be started lets say every 5 or 10 minutes. You see i... (2 Replies)
Discussion started by: MorchiuS
2 Replies

9. IP Networking

check inbound traffic on ports

Hello, I'm new to the forum and would like to know how to check inbound traffic on various port numbers. I would also like to know how to open and close various ports on a unix box running solaris 8. Thanks in advance. sunoracle (2 Replies)
Discussion started by: sunoracle
2 Replies

10. UNIX for Advanced & Expert Users

check inbound traffic on ports

Hello, I'm new to the forum and would like to know how to check inbound traffic on various port numbers. I would also like to know how to open and close various ports on a unix box running solaris 8. Thanks in advance. sunoracle (1 Reply)
Discussion started by: sunoracle
1 Replies
Login or Register to Ask a Question