I know in theory how to test if a port is open or not ... by using TELNET.
For example to test if port 233 is open or not, I would start a cmd prompt and type:
telnet ipaddress 233
if it is open then you will not get connection refused :)
But the thing is that I dont know how to code this in Delphi :(
Main Topics
Browse All Topics





by: ping_itPosted on 2009-04-10 at 03:06:31ID: 24114342
The port to be in Listening state should have an application that "opens" it.
You can check them with netstat -a or netstat -no
If no program is really opening a port, the port is not on the NETSTAT output.
If you want to check whether a port is really blocked and so, even if an application tries to open a port, this port is not reachable from the outside, you can make some port check from the internet. --- The remote server will try to connect to a range of ports you want and it will check the status of the port.
Please let me know if it is clear enough