# XBee COM Port Number for Mac using Eclipse

**URL:** <https://forums.digi.com/t/xbee-com-port-number-for-mac-using-eclipse/16886>\
**Category:** Edgeport\
**Tags:** usb, port, xbee-pro\
**Created:** [June 6, 2016, 12:20am UTC](https://forums.digi.com/t/xbee-com-port-number-for-mac-using-eclipse/16886 "2016-06-06T00:20:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![seananderson](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@seananderson](https://forums.digi.com/u/seananderson)\
**Post date:** [June 6, 2016, 12:20am UTC](https://forums.digi.com/t/xbee-com-port-number-for-mac-using-eclipse/16886/1 "2016-06-06T00:20:57Z")

</div>

I am using the MainApp.java on Eclipse that Digi provides.  
For the section of code where it’s necessary to change the port number I can’t seem to enter the right string:

/\* Constants \*/

```
// TODO Replace with the port where your module is connected to.
private static final String PORT = "COM1";
// TODO Replace with the baud rate of your module.
private static final int BAUD_RATE = 9600;

```

When I copy the port information from the XCTU for my COORD I get usbserial-A104IB9R - 9600/8/N/1/N - API 1. From what I’ve read I think that PORT = “A104IB9R” but this doesn’t actually work. It gives a “no such port error.” I haven’t used eclipse much and am just getting started with xbee. Thanks!

---

<div class="post-metadata">

**Author:** ![AMAbernathy](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@AMAbernathy](https://forums.digi.com/u/AMAbernathy)\
**Post date:** [June 7, 2016, 10:22pm UTC](https://forums.digi.com/t/xbee-com-port-number-for-mac-using-eclipse/16886/2 "2016-06-07T22:22:15Z")

</div>

PORT = “/dev/tty.usbserial- **yourXBee** ”

---

<div class="post-metadata">

**Author:** ![seananderson](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@seananderson](https://forums.digi.com/u/seananderson)\
**Post date:** [June 9, 2016, 8:15am UTC](https://forums.digi.com/t/xbee-com-port-number-for-mac-using-eclipse/16886/3 "2016-06-09T08:15:56Z")

</div>

Thanks so much!

---

<div class="post-metadata">

**Author:** ![emilio](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@emilio](https://forums.digi.com/u/emilio)\
**Post date:** [June 11, 2018, 11:58am UTC](https://forums.digi.com/t/xbee-com-port-number-for-mac-using-eclipse/16886/4 "2018-06-11T11:58:23Z")

</div>

Just for clarification… In this example you read “usbserial-A104IB9R” in XCTU’s list of Serial/USB ports (or in port information for that module).  
Therefore you should set constant string to “/dev/tty.usbserial-A104IB9R”, like here:  
private static final String PORT = “/dev/tty.usbserial-A104IB9R”;
