If you're running P2PV2 networking, the peer data has been moved to the ocr_discoverer_announcements table in the database.
The IP:Port values in the above database are encoded, so if we want to read them we'll need to decode them.
Example psql command to getch the desired data:
psql -U $POSTGRES_USERNAME -h $POSTGRES_HOSTNAME_OR_IP -d $DATABASE_NAME -c "SELECT remote_peer_id, encode(ann, 'base64') as ann_decoded FROM ocr_discoverer_announcements"
Example Output:
remote_peer_id | ann_decoded
------------------------------------------------------+------------------------------------------------------------------------------
Omitting the specific results
Once we have the table's values encoded in base64, we'll just need to decode the first line in the ann_decoded table.
echo "$VALUE_FROM_ANN_DECODED_COLUMN" | base64 -d
example output:
192.168.1.100:11111 ______ base64: invalid input
I'm not sure the full encodiing/decoding methods used, but this gets you the IP Address and port mapping for each of the peers.