how to know whether particular port number is free or not


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to know whether particular port number is free or not
# 1  
Old 10-10-2002
Data how to know whether particular port number is free or not

I wish to know whether a particular port is free or not in my SUN solaris SPARC machine . I wish to use that particular port for one server software.

How do I know that.
# 2  
Old 10-10-2002
In my AIX machine i do the following to determine

telnet <machine_name> <port-number>

When you say telnet <machine-IP> it connects to default 80

when you say telnet <machine_IP> 5000

If port 5000 is used by any other process telnet connects

otherwise it gives error message

remote machine refused connection

This happens in our AIX machines ,Check with your local expert

GOOD LUCK
# 3  
Old 10-10-2002
you can also use the netstat command.

issued netstat -an | grep (port) | grep -i listen

if the port is listen then the port is not yet disable.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to find port number wwn of particular port on dual port HBA,?

please find the below o/p for your reference bash-3.00# fcinfo hba-port HBA Port WWN: 21000024ff295a34 OS Device Name: /dev/cfg/c2 Manufacturer: QLogic Corp. Model: 375-3356-02 Firmware Version: 05.03.02 FCode/BIOS Version: BIOS: 2.02; fcode: 2.01;... (3 Replies)
Discussion started by: sb200
3 Replies

2. Solaris

To get process id for port number

Hi All, How to get the list of port numbers and it is correspoding proceses id that are currently running on. Please suggest and it is urgent Thanks. (7 Replies)
Discussion started by: rbalaj16
7 Replies

3. Shell Programming and Scripting

To get Port number alone from the list

~]#netstat -vatn | grep LISTEN tcp 0 0 0.0.0.0:34895 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN ... (7 Replies)
Discussion started by: linuxadmin
7 Replies

4. Programming

How to free a port?

hi all, Im using a tcp socket for communication. After all the communications I close the socket and bind another socket to the same port. But it shows bind error. I see it is due to the port no being used immediately. But i am closing the first socket before the binding the second one to the... (9 Replies)
Discussion started by: v1jay
9 Replies

5. Solaris

Finding port number !!

Hi all , I want know the port no on which a particular application is running. How to find that? Thanks in anticipation (11 Replies)
Discussion started by: kumarmani
11 Replies

6. UNIX for Dummies Questions & Answers

port number

hi all i want to connect a system, how can i know the port number of a system. (2 Replies)
Discussion started by: tukuna82
2 Replies

7. UNIX for Dummies Questions & Answers

Need to know port number

Hi expert, I wanted to know in which port my apache is running in solaris box thanks Shaan (1 Reply)
Discussion started by: shaan_dmp
1 Replies

8. Programming

find free port

how can i find whether the particular port is free among certain port numbers like 15000 to 30000 before i connect to the server by assigning the port no for the client (0 Replies)
Discussion started by: MKSRaja
0 Replies

9. UNIX for Advanced & Expert Users

FTP Port Number

On HP-UX 11 how do I get the port number of an active ftp connection? (2 Replies)
Discussion started by: mbb
2 Replies

10. Cybersecurity

get number of a port

Hello every one. I work in a LAN with many application server. Each one use a different port. What command permit to obtain the number of these port. thanks (2 Replies)
Discussion started by: hoang
2 Replies
Login or Register to Ask a Question