diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp
index f689e30430471b7de045e1d77e2d0c7d60fd794c..198c6f3f07d8ce6fe6a6ac3af1e97801db39aef6 100644
--- a/src/sbbs3/main.cpp
+++ b/src/sbbs3/main.cpp
@@ -3668,7 +3668,7 @@ void DLLCALL bbs_thread(void* arg)
 		identity=NULL;
 		if(startup->options&BBS_OPT_GET_IDENT) {
 			sbbs->bprintf("Resolving identity...");
-			identify(&client_addr, 23, str, sizeof(str)-1);
+			identify(&client_addr, startup->telnet_port, str, sizeof(str)-1);
 			identity=strrchr(str,':');
 			if(identity!=NULL) {
 				identity++;	/* skip colon */