lsof -i :8080 where 8080 is the port you want to know about
for tcp: lsof | grep TCPor for udp: lsof | grep UDP