06-25-2018
Script for port is open or not
I need a script on which if i will pass the port number and the host name as external parameter then it should respond me if the port is open or not
Moderator's Comments:
|
|
thread moved
|
|
Last edited by jim mcnamara; 06-25-2018 at 10:27 AM..
9 More Discussions You Might Find Interesting
1. Solaris
hi all,
My OS is solaris 8 with core system installation only. so far everything works fine. by i do some testing from my xp pc as client to nmap and scan opening port to my solaris. the result as below:
Initiating SYN Stealth Scan against 10.10.10.10 at 16:25
Discovered open port 21/tcp on... (3 Replies)
Discussion started by: hezry79
3 Replies
2. Linux
How can I open a port on linux machine ??? (5 Replies)
Discussion started by: mm00123
5 Replies
3. AIX
Hi Guys,
i am trying to open a port in AIX.
but i am not able to get the command for this. AIX is not having the iptables file present.
So please any body can tell me how to open a port in AIX...
Thanks
sanju (2 Replies)
Discussion started by: sanju_d1231
2 Replies
4. IP Networking
Hi. I ran nmap on my server, and I get the following:
Starting Nmap 4.76 ( http://nmap.org ) at 2009-03-19 16:33 EDT
Interesting ports on -------- (-----):
Not shown: 997 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
6881/tcp open bittorrent-tracker
The... (0 Replies)
Discussion started by: Rledley
0 Replies
5. Red Hat
Hi,
What iptables command do I need to run in order to open up the following port for incomming traffic on the following server:
# telnet 127.0.0.1 1521
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection... (3 Replies)
Discussion started by: Duffs22
3 Replies
6. Red Hat
I uses iptables but not working :mad: (2 Replies)
Discussion started by: lup
2 Replies
7. IP Networking
i want to kill a tcp connection by killing its pid
with netstat -an i got the tcp ip connection on port 5914
but when i type ps -a or ps-e there is not such process running on port 5914
is it possible that because i do not log on with proper user account i can not see that process running? (30 Replies)
Discussion started by: alinamadchian
30 Replies
8. HP-UX
Hello Experts,
I want to open the port 443 on my HP-UX system.
can you please help ?
Thanks in advance. (1 Reply)
Discussion started by: purushottamaher
1 Replies
9. Solaris
Hi there,
I tried just open a port but I failed ;-(
# telnet localhost 9876
That should work so I did ...
# vi /etc/services
myport 9876/tcp # my port
# svcadm restart inetd
-> New pid, see ps - ef | grep inet
# netstat -an | grep 9876
No port 9876 is waiting ;(
#... (4 Replies)
Discussion started by: System
4 Replies
LEARN ABOUT DEBIAN
roar_socket_listen
roar_socket_listen(3) System Manager's Manual: RoarAudio roar_socket_listen(3)
NAME
roar_socket_listen - Opens a new listen socket
SYNOPSIS
#include <roaraudio.h>
int roar_socket_listen(int type, char * host, int port);
DESCRIPTION
Opens a new listening socket for network clients to connect to. You may accept new connections via accept(2).
PARAMETERS
type The type of the Socket. See the list below.
host The host or path name to listen on. This depends on the type argument. For TCP/IP to listen on any interface use a value of
"0.0.0.0".
port The port number to listen on. This may be ignored by types not supporting port numbers.
SOCKET TYPES
ROAR_SOCKET_TYPE_UNKNOWN
The type will be auto detected. Don't use this if you know the type. Only use this to support user given addresses and enable auto
detection.
ROAR_SOCKET_TYPE_TCP
Use a TCP/IP connection. This is standard mode for networking. host is the hostname or IP to listen on and port is the port number
to use.
ROAR_SOCKET_TYPE_INET
Same as above but deprecated. Use ROAR_SOCKET_TYPE_TCP.
ROAR_SOCKET_TYPE_UNIX
UNIX Domain Socket. This should be default for local connections. host is the filename of the socket.
ROAR_SOCKET_TYPE_DECNET
DECnet socket.
ROAR_SOCKET_TYPE_FORK
This is to fork a roard to communicate with. Can't be use to listen on, just to connect to. host and port is ignored at the moment.
ROAR_SOCKET_TYPE_FILE
This is used to open a plain file. Can't be use to listen on, just to connect to. host is the filename to connect to.
RETURN VALUE
On success these calls return filehandle. On error, -1 is returned.
BUGS
Listening on UDP sockets is not supported at the moment.
EXAMPLES
FIXME
SEE ALSO
accept(2), libroar(7), RoarAudio(7).
RoarAudio May 2011 roar_socket_listen(3)