# MBS (StoreKit) Error "Failed to get MAC address!" & "Invalid serial"

**URL:** <https://forum.xojo.com/t/mbs-storekit-error-failed-to-get-mac-address-invalid-serial/85401>\
**Category:** Extras\
**Created:** [May 21, 2025, 4:09pm UTC](https://forum.xojo.com/t/mbs-storekit-error-failed-to-get-mac-address-invalid-serial/85401 "2025-05-21T16:09:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Osthege](https://forum.xojo.com/user_avatar/forum.xojo.com/thomas_osthege/32/2874_2.png) [@Thomas\_Osthege](https://forum.xojo.com/u/Thomas_Osthege)\
**Post date:** [May 21, 2025, 4:09pm UTC](https://forum.xojo.com/t/mbs-storekit-error-failed-to-get-mac-address-invalid-serial/85401/1 "2025-05-21T16:09:39Z")

</div>

I use MBS for In-App-Purchase and receipt validation.

On an Intel iMac 27" 2020 with macOS Sequoia 15.5 I use the code below. FailReason returns “Failed to get MAC address!”. I looked at the MAC addresses with ifconfig and got valid MAC addresses on all important interfaces. There is another strange effect on this computer: MBS always says that the MBS serial is invalid. On a MacBook Pro M1 everything is working fine.

Any ideas?

```auto
Var v As New AppReceiptVerificatorMBS

If App.BundleIdentifier <> "" Then v.BundleIdentifier = App.BundleIdentifier
If App.Version <> "" Then v.BundleVersion = App.Version

If Not v.verifyReceipt(gReceipt) Then
  MsgBox kInvalidReceipt + v.FailReason '''
End If

```

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [May 21, 2025, 5:17pm UTC](https://forum.xojo.com/t/mbs-storekit-error-failed-to-get-mac-address-invalid-serial/85401/2 "2025-05-21T17:17:16Z")

</div>

Well, what does the MACAddress property say?

The plugin queries the MAC Address for en0 interface.

---

<div class="post-metadata">

**Author:** ![Thomas\_Osthege](https://forum.xojo.com/user_avatar/forum.xojo.com/thomas_osthege/32/2874_2.png) [@Thomas\_Osthege](https://forum.xojo.com/u/Thomas_Osthege)\
**Post date:** [May 22, 2025, 9:55am UTC](https://forum.xojo.com/t/mbs-storekit-error-failed-to-get-mac-address-invalid-serial/85401/3 "2025-05-22T09:55:23Z")

</div>

That’s probably the problem. In fact there is no en0 interface on my iMac. I don’t use an ethernet connection. I tried to configure one, without success. Isn’t there an interface that is always available in macOS?

The available interfaces on my iMac with a MAC or ether address are: en1 - 4, ap1, awdl0, llw0, bridge0.

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [May 22, 2025, 10:08am UTC](https://forum.xojo.com/t/mbs-storekit-error-failed-to-get-mac-address-invalid-serial/85401/4 "2025-05-22T10:08:56Z")

</div>

on my Macbook, en0 is the Wifi. Not sure why the iMac doesn’t have en0.

I could change code to look for en1 if en0 is missing.

---

<div class="post-metadata">

**Author:** ![Thomas\_Osthege](https://forum.xojo.com/user_avatar/forum.xojo.com/thomas_osthege/32/2874_2.png) [@Thomas\_Osthege](https://forum.xojo.com/u/Thomas_Osthege)\
**Post date:** [May 22, 2025, 10:17am UTC](https://forum.xojo.com/t/mbs-storekit-error-failed-to-get-mac-address-invalid-serial/85401/5 "2025-05-22T10:17:38Z")

</div>

Great! That would be a good solution. Thank you very much!

Is the missing MAC address the reason that the serial number isn’t recognised, too?

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [May 22, 2025, 10:19am UTC](https://forum.xojo.com/t/mbs-storekit-error-failed-to-get-mac-address-invalid-serial/85401/6 "2025-05-22T10:19:16Z")

</div>

Well, the receipt has the MAC Address of the Mac you purchased the app on.  
Maybe that is the one in en1.

---

<div class="post-metadata">

**Author:** ![Thomas\_Osthege](https://forum.xojo.com/user_avatar/forum.xojo.com/thomas_osthege/32/2874_2.png) [@Thomas\_Osthege](https://forum.xojo.com/u/Thomas_Osthege)\
**Post date:** [May 22, 2025, 10:20am UTC](https://forum.xojo.com/t/mbs-storekit-error-failed-to-get-mac-address-invalid-serial/85401/7 "2025-05-22T10:20:51Z")

</div>

OK, but what’s the influence on the MBS serial?

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [May 22, 2025, 10:24am UTC](https://forum.xojo.com/t/mbs-storekit-error-failed-to-get-mac-address-invalid-serial/85401/8 "2025-05-22T10:24:02Z")

</div>

Our registration for the plugin licenses? Nothing.  
If you have a license problem with our plugin, maybe email me a screenshot of what you see.

The [AppReceiptVerificatorMBS](https://www.monkeybreadsoftware.net/class-appreceiptverificatormbs.shtml) class needs the Mac ID as it compares the MAC in the receipt to the one of the Mac it runs on.

---

<div class="post-metadata">

**Author:** ![Thomas\_Osthege](https://forum.xojo.com/user_avatar/forum.xojo.com/thomas_osthege/32/2874_2.png) [@Thomas\_Osthege](https://forum.xojo.com/u/Thomas_Osthege)\
**Post date:** [May 25, 2025, 10:25am UTC](https://forum.xojo.com/t/mbs-storekit-error-failed-to-get-mac-address-invalid-serial/85401/9 "2025-05-25T10:25:41Z")

</div>

To avoid this annoying message I did this:

1. Deleted _/Library/Preferences/SystemConfiguration/NetworkInterfaces.plist_.
2. Exchanged _en0_ and _en1_ in _/Library/Preferences/SystemConfiguration/preferences.plist_.
3. Rebooted the System.

After that _en0_ became the active WLAN and _en1_ became inactive.

MBS is now able to get the MAC address and verify receipts.  
But it still doesn’t accept the correct serial number.

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [May 25, 2025, 2:46pm UTC](https://forum.xojo.com/t/mbs-storekit-error-failed-to-get-mac-address-invalid-serial/85401/10 "2025-05-25T14:46:57Z")

</div>

Good. I’ll email you about the licensing issue.
