|
Java™ by example!
|
|
|
How do I connect to the echo port (7)?
The echo port 7 will return a datagram that contains the exact contents of what was sent to it. On many systems, this port is being disabled, fearing hackers may use it to perform a denial-of-service attack of some sort. Just open a socket and write a line. If the port is enabled, the return will be the exact line. EchoClient.java:
java EchoClient www.compapp.dcu.ieoutputs:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|