# TCP-LISTEN in Digi One SP

**URL:** <https://forums.digi.com/t/tcp-listen-in-digi-one-sp/7128>\
**Category:** Realport\
**Created:** [August 27, 2007, 5:07pm UTC](https://forums.digi.com/t/tcp-listen-in-digi-one-sp/7128 "2007-08-27T17:07:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xmaymi](https://avatars.discourse-cdn.com/v4/letter/x/f6c823/32.png) [@xmaymi](https://forums.digi.com/u/xmaymi)\
**Post date:** [August 27, 2007, 5:07pm UTC](https://forums.digi.com/t/tcp-listen-in-digi-one-sp/7128/1 "2007-08-27T17:07:34Z")

</div>

Dear,

I would like to find some information about the possibility to use the DIGI ONE SP with the TCP-Listen mode. I’m not capable to find a suitable manual in the website. Is it possible to use this functionality with this device in order to initiate connections?

Thanks in advance.  
Xavier.

---

<div class="post-metadata">

**Author:** ![michaelt](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/michaelt/32/92_2.png) [@michaelt](https://forums.digi.com/u/michaelt)\
**Post date:** [August 27, 2007, 9:26pm UTC](https://forums.digi.com/t/tcp-listen-in-digi-one-sp/7128/2 "2007-08-27T21:26:59Z")

</div>

I’m not sure what you mean by TCP-Listen mode. If you mean setting up your Digi One SP as a TCP Socket server, yes, this is one of the serial port profile selections in the Web UI.

---

<div class="post-metadata">

**Author:** ![xmaymi](https://avatars.discourse-cdn.com/v4/letter/x/f6c823/32.png) [@xmaymi](https://forums.digi.com/u/xmaymi)\
**Post date:** [August 28, 2007, 7:02am UTC](https://forums.digi.com/t/tcp-listen-in-digi-one-sp/7128/3 "2007-08-28T07:02:20Z")

</div>

Hi again,  
I haven’t explained the problem properly.  
This is the scenario PC-ADSL1\<-\>Internet\<-\>ADSL2-Digi-DataDevice. I want to keep the PC as a server but the point is that they work in a different nets. In this situation the Digi should initiate the connection in order to reach the PC using NAT in ADSL1’s router.

Thanks.  
Xavier.

---

<div class="post-metadata">

**Author:** ![userid0](https://avatars.discourse-cdn.com/v4/letter/u/f6c823/32.png) [@userid0](https://forums.digi.com/u/userid0)\
**Post date:** [August 28, 2007, 12:37pm UTC](https://forums.digi.com/t/tcp-listen-in-digi-one-sp/7128/4 "2007-08-28T12:37:39Z")

</div>

It sounds as though you will want to configure autoconnect on the Digi One SP to connect with the server. From the root prompt of the unit:

#\> set ports dev=term auto=on dest=(IP\_of\_server) ra=1

As long as the ADSL router/modem is configured as the gateway for the Digi One SP, it should reach the server fine with different subnets.

#\> set config gateway=(IP\_of\_ADSL)
