Hello I am using dart:o library to connect to a thermal printer, while I can connect with IP address, I want to connect with MAC address, since it's a local network and ip may change or already used on new routers.

I am currently using this code:

try {
  _socket = await Socket.connect(ip, 9100, timeout: const Duration(seconds: 3));
  if(recipet == null) {
  } else {
} catch (e) {
  print('Print result: $e');

Any way to change to connect with Mac address instead of ip.