is it possible to send the remote connector ip via netcat?

You could use something like this:

while true; do nc -lvp 1337 -c "echo -n 'Your IP is: '; grep connect my.ip | cut -d'[' -f 3 | cut -d']' -f 1" 2> my.ip; done

nc will be executed in endless loop listening on port 1337 with verbose option that will write information about remote host to stderr. stderr is redirected to file my.ip. Option -c for nc allows to execute something to "handle" connection. In this case we will next grep for IP addres from my.ip file.

pbm@lantea:~$ curl http://tauri:1337
Your IP is: 192.168.0.100

Tags:

Ip

Netcat