01-09-2017
Probably a daft question, but if you are starting a process to listen on a port, how will the client know which port to connect to?
Apologies for being daft .....
Robin
9 More Discussions You Might Find Interesting
1. Cybersecurity
/* Linux Slackware */
Nmap shows the following ports open on the gateway.
21/tcp ftp
22/tcp ssh
23/tcp telnet
25/tcp smtp
37/tcp time
80/tcp http
113/tcp auth
515/tcp printer
587/tcp submission
1024/tcp kdm
6000/tcp x11
-------------------------------
i would like to close as... (10 Replies)
Discussion started by: LowOrderBit
10 Replies
2. Shell Programming and Scripting
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
3. Shell Programming and Scripting
i'd like to grep a range of ports on a netstat -nt output, localaddress, say :1 to :1023. how do i do it via sed/awk/grep?
Thanks,
Marc (1 Reply)
Discussion started by: marcpascual
1 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I have a number of Solaris 8 Sun servers that have open ports that I cannot identify. I see some with 1012-1020 (which are reserved ports according to the IANA. Lsof does not identify these. One server has all these on and one server just has 1017.
*.1023 ... (3 Replies)
Discussion started by: csross
3 Replies
5. Solaris
Hello,
I have a number of Solaris 8 Sun servers that have open ports that I cannot identify. I see some with 1013-1023 (which are reserved ports according to the IANA. Lsof does not identify these. I rebooted the server and they went off, but this morning I saw they were all back on again. Any... (1 Reply)
Discussion started by: csgonan
1 Replies
6. Shell Programming and Scripting
My requirement is
I need to write a program in shell scripting to check 2 TCP unused unique port numbers in SOLARIS and I have to lock the same ports so that it will not be used in any other new process and the same port numbers should be used and locked in the LINUX machine to communicate... (2 Replies)
Discussion started by: sreeramr30
2 Replies
7. Solaris
hi guys,
may i know the exact steps to open a port in solaris.i have some rough idea - which is adding the port number in /etc/services.
but i am not sure the correct conventions, steps or any other steps.
kindly advise.thanks guys ! (1 Reply)
Discussion started by: cromohawk
1 Replies
8. AIX
We have a system and we have modified the /etc/ind.conf and the
/etc/services and the /etc/rc.tcpip file to turn off specific applications.
I need to know what is the correct procedure for locking down unused
ports that still appear to be in a listen mode even... (1 Reply)
Discussion started by: admaix
1 Replies
9. Shell Programming and Scripting
Hello,
I have a file with multiple columns of which the first two columns are like
a1_144601_144650 ABC_yellow_144608_16785
a1_144651_144700 ABC_yellow_144608_16785
a1_144701_144751 ABC_yellow_144608_16785
So Based on column 1 (red values) I need to check if its falling in... (3 Replies)
Discussion started by: Diya123
3 Replies
LEARN ABOUT SUSE
tnm::udp
udp(n) Tnm Tcl Extension udp(n)
__________________________________________________________________________________________________________________________________________________
NAME
udp - Send and receive UDP datagrams.
_________________________________________________________________
DESCRIPTION
The udp command allows to send and receive datagrams using the User Datagram Protocol (UDP) (RFC 768).
UDP COMMAND
udp open [port]
The udp open command opens a UDP datagram socket and returns an udp handle. The socket is bound to given port number or name. An
unused port number is used if the port argument is missing.
udp connect host port
The udp connect command opens a UDP datagram socket and connects it to a port on a remote host. A connected UDP socket only allows
to send messages to a single destination. This usually allows to shorten the code since there is no need to specify the destination
address for each udp send command on a connected UDP socket. The command returns a udp handle.
udp send handle [host port] message
The udp send command sends a datagram containing message to the destination specified by host and port. The host and port arguments
may not be used if the UDP handle is already connected to a transport endpoint. If the UDP handle is not connected, you must use
these optional arguments to specify the destination of the datagram.
udp receive handle
The udp receive command receives a datagram from the UDP socket associated with handle. This command blocks until a datagram is
ready to be received. In most cases, it might be a good idea to check for pending datagrams using the udp bind command.
udp close handle
The udp close command closes the UDP socket associated with handle.
udp bind handle readable [script]
udp bind handle writable [script]
The udp bind command allows to bind scripts to a UDP handle. A script is evaluated once the UDP handle becomes either readable or
writable, depending on the third argument of the udp bind command. The script currently bound to a UDP handle can be retrieved by
calling the udp bind command without a script argument. Bindings are removed by binding an empty string.
udp info [handle]
The udp info command without the handle argument returns a list of all existing UDP handles. Information about the state of a UDP
handle can be obtained by supplying a valid UDP handle. The result is a list containing the source IP address, the source port, the
destination IP address and the destination port.
SEE ALSO
scotty(1), Tnm(n), Tcl(n)
AUTHORS
Juergen Schoenwaelder <schoenw@cs.utwente.nl>
Tnm udp(n)