# How can I change the port for telnetd to something other than 23?

**URL:** <https://forums.digi.com/t/how-can-i-change-the-port-for-telnetd-to-something-other-than-23/11665>\
**Category:** Linux\
**Tags:** telnet, ethernet, cme9210, linux\
**Created:** [July 1, 2013, 4:14am UTC](https://forums.digi.com/t/how-can-i-change-the-port-for-telnetd-to-something-other-than-23/11665 "2013-07-01T04:14:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glenn\_Hamblin](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@Glenn\_Hamblin](https://forums.digi.com/u/Glenn_Hamblin)\
**Post date:** [July 1, 2013, 4:14am UTC](https://forums.digi.com/t/how-can-i-change-the-port-for-telnetd-to-something-other-than-23/11665/1 "2013-07-01T04:14:54Z")

</div>

I have a Digi connect me 9210 Linux development kit and I have written a basic telnet server application that takes commands from a telnet client to operate a peice of equipment. It all works fine on the port I have specified (26), but my customer would like to connect to it via the standard telnet port (23).

That port (23) is currently used by the OS for a shell connection. And I can’t really disable the built in telnet daemon because I need it to change the devices IP address (Because I cannot seem to make ADDP work but that’s another issue).

I have edited the /etc/services file and changed the telnet port there, but it seems to have no affect on the telnet daemon, it still sits on port 23. I also don’t see an inet or xinet configuration file so I think Digi is doing something different, but I can’t figure out what.

Any suggestions would be greatly appreciated.

Thanks,  
Glenn

---

<div class="post-metadata">

**Author:** ![tuxembb](https://avatars.discourse-cdn.com/v4/letter/t/b38774/32.png) [@tuxembb](https://forums.digi.com/u/tuxembb)\
**Post date:** [October 28, 2013, 5:13am UTC](https://forums.digi.com/t/how-can-i-change-the-port-for-telnetd-to-something-other-than-23/11665/2 "2013-10-28T05:13:03Z")

</div>

telnet daemon is started in /etc/inittab

In telnetd daemon init line add “-p portnumber”

build and install onto module. It will work

---

<div class="post-metadata">

**Author:** ![gwillits](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@gwillits](https://forums.digi.com/u/gwillits)\
**Post date:** [April 17, 2014, 12:16am UTC](https://forums.digi.com/t/how-can-i-change-the-port-for-telnetd-to-something-other-than-23/11665/3 "2014-04-17T00:16:59Z")

</div>

That answer sounds like the port has to be a hard-coded value prior to building the application.

Can the port number be changed during run time by a user-entered preference?
