Hello jojopi,
I think my use of the term remote is wrong and misleading,
I'm operating on a local network when I access 'myProgram'.
The inclusions show that there are differences in the output,
as its 'myProgram' that is calling 'netstat', I would be able to tell if it is being
accessed from outside the local Pi.
There is a problem (for me) with 'netstat' in that, I don't know how to stop it running
and still obtain its output. I'm using QT4 and QProcess.
Had a look at 'getenv()' and 'printenv' with and without tightvnc or rdp, and could not
see any differences in the output for 'printenv'.
If I can't get something straight forward sorted out, I'll use password control.
Regards
Code: Select all
From remote under tightvnc or from the Pi running tightvnc on remote
root@mypi:/# netstat -p -n -tcp -udp
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 192.168.yy.yy:5901 192.168.yy.zz:10966 ESTABLISHED 3210/Xtightvnc
Code: Select all
From remote under rdp or from the Pi when runing rdp on remote
root@mypi:/# netstat -p -n -tcp -udp
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.xx.xx.xx:5910 127.xx.xx.xx:45304 ESTABLISHED 3559/Xvnc
tcp 0 0 127.xx.xx.ww:45304 127.xx.xx.xx:5910 ESTABLISHED 3128/xrdp
tcp 0 85 192.168.yy.yy:3389 192.168.yy.zz:2159 ESTABLISHED 3128/xrdp
tcp 0 0 127.xx.xx.xx:3350 127.xx.xx.xx:53450 TIME_WAIT -
Code: Select all
From pi, no vnc, no rdp running on remote
root@mypi:/# netstat -p -n -tcp -udp
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.xx.xx.xx:45304 127.xx.xx.xx:5910 TIME_WAIT -