yes they are. There is no router involved, just a single LAN cable.
via ifconfig I assigned them the IPs 192.168.10.100 and 101, and tried joining the other one accordingly. As I said, I could ping the IP of the other device without any package loss.
This is "ip a":
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether f4:4d:30:4c:e7:12 brd ff:ff:ff:ff:ff:ff
inet 192.168.10.100/24 brd 192.168.10.255 scope global enp2s0
valid_lft forever preferred_lft forever
inet6 fe80::f64d:30ff:fe4c:e712/64 scope link
valid_lft forever preferred_lft forever
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:d5:be:9a:2b brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
valid_lft forever preferred_lft forever
I achieved static ips via these commands:
sudo ifconfig enp2s0 up
sudo ifconfig enp2s0 inet 192.168.10.100 netmask 255.255.255.0 ar
btw I use Linux Mint Cinnamon / KDE on the computers