There is a server listening incoming connections to a given port. Suppose server is 172.16.5.26 and port is 4099. When I scanned this as
nmap 172.16.5.26 -p 4099
I’m able to get the ip address of client. But when TCP half open connection is requested as
nmap -sS 172.16.5.26 -p 4099
I’m unable to get the IP address of client. I’m looking for a method in java to do this task. If there is no such inbuilt method in java library, is there any way to accomplish the task ?
Socket.getRemoteAddess() and friends. But these assume the connection is to your JVM and that this is the corresponding socket. If you’re looking for a Java method to find arbitrary half open connections anywhere in the host there isn’t one.
What’s the motivation here? Why do you need this?