ARP is a protocol for resolution of network layer addresses such as IP into link layer addresses (such as MAC addresses)
Transmission Control Protocol (TCP) is a transport layer protocol that provides a connection-oriented data stream service with guaranteed, in-order delivery.
"If you are using linux check out netdiscover this uses arp i think arp is lower level than tcp udp and with java you can only create apps from tcp udp and above"
from question "Detect anyone connecting network"
"It would appear from your question that the period of the tcp message is shorter than the arp refresh time"
from question "How to Reduce TCP delays caused by ARP flushes for MODBUS TCP"