Actually I want to make something like ifconfig.me functionality but only for my internal network. I see it the way smth on server listens some port and send ip of connected remote machine.
nc is a great utility for my issue (also I haven't any php/python/whatever on server. just only shell and standard unix tools).
I can see remote ip and dns name if I launch
nc -vv and connect to it from remote system, but I can't find the way to send them to remote host.
Or maybe I chose too strange path and there is another simpler solution?