# GL7812 server configuration assistance

**URL:** <https://forum.sierrawireless.com/t/gl7812-server-configuration-assistance/34814>\
**Category:** GL Series\
**Created:** [May 1, 2025, 11:15pm UTC](https://forum.sierrawireless.com/t/gl7812-server-configuration-assistance/34814 "2025-05-01T23:15:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fernando.Guillen](https://avatars.discourse-cdn.com/v4/letter/f/e8c25b/32.png) [@Fernando.Guillen](https://forum.sierrawireless.com/u/Fernando.Guillen)\
**Post date:** [May 1, 2025, 11:15pm UTC](https://forum.sierrawireless.com/t/gl7812-server-configuration-assistance/34814/1 "2025-05-01T23:15:25Z")

</div>

Basic Information:

- My goal is simple. To enable this GL7812 to run as a pass through in server mode.
- I am using a Private Static IP SIM
- I am connected with the correct VPN credentials
- Using HL78xx - AT Command Reference Guide (41111821 - Rev. 20 & 24)  
Are they any experts on the server configuration that can provide some assistance?

We want to run a demo where we have an external UI calls into the GL7812 (given IP and a port) and extract information.  
I have the modem running fine in client mode calling out to a server and then pass through, but now that I want to do the other way around and am not able to reach it.

I run the sequence below to setup the TCP connection in server and then start the TCP connection. I connect to my VPN and tried to **ping** the IP in the Windows command prompt but it times out… I tried to **tracert** the IP and all the hops timed out after the first.

I based this off of the daytime server in the reference guide (A.5.2 Server Mode), but I just wanted a pass through and do not want to initiate a connection request necessarily. Perhaps I am thinking about this incorrectly or I am providing incomplete information. Any assistance would be appreciated.

Powered up GL7812…  
Here is the input/output from my PuTTY terminal (echo turned on and a few URCs at startup)

+CEREG: 0  
+CREG: 0

+CEREG: 2  
+CREG: 2

+CEREG: 5  
+CREG: 5

AT  
AT  
OK

AT+CGMI  
AT+CGMI  
Sierra Wireless  
OK

AT+CGMM  
AT+CGMM  
GL7812  
OK

AT+CGMR  
AT+CGMR  
GL7812.5.4.12.2  
OK

AT+CGSN  
AT+CGSN  
xxxxxxxxxxxxxxx (hidden for privacy)  
OK

AT+KSIMDET?  
AT+KSIMDET?  
+KSIMDET: 1  
OK

AT+CGDCONT?  
AT+CGDCONT?  
+CGDCONT: 1,“IP”,“APN”,xx.xxx.x.xxx,0,0,0,0,0,0,  
+CGDCONT: 2,“IPV4V6”,0,0,0,0,0,0,  
OK

AT+KCNXCFG=1,“GPRS”,“APN”,“IPV4”,“0.0.0.0”,“0.0.0.0”,“0.0.0.0”  
AT+KCNXCFG=1,“GPRS”,“APN”,“IPV4”,“0.0.0.0”,“0.0.0.0”,“0.0.0.0”  
OK

AT+KTCPCFG=1,1,100  
AT+KTCPCFG=1,1,100  
+KTCPCFG: 1  
OK

AT+KTCPCNX=1  
AT+KTCPCNX=1  
OK  
+KCNX\_IND: 1,1,0  
+KTCP\_IND: 1,1

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [May 1, 2025, 11:59pm UTC](https://forum.sierrawireless.com/t/gl7812-server-configuration-assistance/34814/2 "2025-05-01T23:59:24Z")

</div>

In +KTCPCFG command, seems you have set 100 to remote address instead of tcp port number…

---

<div class="post-metadata">

**Author:** ![Fernando.Guillen](https://avatars.discourse-cdn.com/v4/letter/f/e8c25b/32.png) [@Fernando.Guillen](https://forum.sierrawireless.com/u/Fernando.Guillen)\
**Post date:** [May 2, 2025, 1:47pm UTC](https://forum.sierrawireless.com/t/gl7812-server-configuration-assistance/34814/3 "2025-05-02T13:47:58Z")

</div>

Thanks for the feedback. That is actually just a typo in my message:  
Here is the exact terminal output:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/5/5447f24c16b0abba3c309d3c05e744968e5a09bf.png)

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [May 2, 2025, 2:26pm UTC](https://forum.sierrawireless.com/t/gl7812-server-configuration-assistance/34814/4 "2025-05-02T14:26:01Z")

</div>

What is the problem?  
Do you mean your windows cannot ping the IP address?

How can you ensure the sim card IP address can be pinged?

Can the windows pc establish tcp client connection to it?

---

<div class="post-metadata">

**Author:** ![Fernando.Guillen](https://avatars.discourse-cdn.com/v4/letter/f/e8c25b/32.png) [@Fernando.Guillen](https://forum.sierrawireless.com/u/Fernando.Guillen)\
**Post date:** [May 9, 2025, 3:51pm UTC](https://forum.sierrawireless.com/t/gl7812-server-configuration-assistance/34814/5 "2025-05-09T15:51:21Z")

</div>

Apologies for the delayed response. I was waiting for the carrier to get back to me.

What is the problem?  
Do you mean your windows cannot ping the IP address?  
Yes, that was the case, but I reached out to our provider and after changing our VPN profile I am able to ping and trace via Windows command prompt

How can you ensure the sim card IP address can be pinged?  
Ping works now.

Can the windows pc establish tcp client connection to it?  
Using our tool I see the KTCP\_SRVREQ and the KTCP\_DATA responses. To see the actual packet I send the AT+KTCPRCV command.

Do you know if it is possible to see the actual data being transmitted without the KTCPRCV command? My goal is for the modem to act as a passthrough after the connection has been established, but if we need to send a KTCPRCV command to grab every packet it would be sub optimal.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/f/ffdb631042c10ecafcef05cc0a587a3e39c4bf50.png)

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [May 9, 2025, 5:23pm UTC](https://forum.sierrawireless.com/t/gl7812-server-configuration-assistance/34814/6 "2025-05-09T17:23:36Z")

</div>

Have you tried at+ktcpstart to see the data directly?

---

<div class="post-metadata">

**Author:** ![Fernando.Guillen](https://avatars.discourse-cdn.com/v4/letter/f/e8c25b/32.png) [@Fernando.Guillen](https://forum.sierrawireless.com/u/Fernando.Guillen)\
**Post date:** [May 9, 2025, 6:22pm UTC](https://forum.sierrawireless.com/t/gl7812-server-configuration-assistance/34814/7 "2025-05-09T18:22:53Z")

</div>

From my understanding the KTCPSTART command was for client mode. When I tested it with the server mode I get an error.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/b/b27745248211184ce6a3979f94f5713f0e6f136f.png)

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [May 10, 2025, 12:36am UTC](https://forum.sierrawireless.com/t/gl7812-server-configuration-assistance/34814/8 "2025-05-10T00:36:31Z")

</div>

didn’t you should enter AT+KTCPSTART=2 after receiving “+KTCP\_SRVREQ: 1,2”?

> [@Automatic TCP session restoring on boot](https://forum.sierrawireless.com/t/automatic-tcp-session-restoring-on-boot/29419):
>
> Hello, I have an RC7611 module configured as a TCP server and use it in the Direct Data Flow mode when a client is connected. The +KTCPCFG command allows me to open the listening socket automatically on boot. But to enter the Direct Data Flow mode I have to resend the +KTCPSTART command every time a client is connecting. Wonder if is there a way to make the device accept the first incoming connection and enter Direct Data Flow mode automatically? Here is an example of the module configuration …

---

<div class="post-metadata">

**Author:** ![Fernando.Guillen](https://avatars.discourse-cdn.com/v4/letter/f/e8c25b/32.png) [@Fernando.Guillen](https://forum.sierrawireless.com/u/Fernando.Guillen)\
**Post date:** [May 12, 2025, 3:38pm UTC](https://forum.sierrawireless.com/t/gl7812-server-configuration-assistance/34814/9 "2025-05-12T15:38:04Z")

</div>

Thanks for the information and link. I reviewed it and I see I may need to send the AT+KTCPSTART=2 after receiving an initial data packet. I’ll test it out, but I also wanted the module to enter data mode automatically and if that is not possible it would hinder the demo. Thanks for the assistance.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [May 12, 2025, 3:40pm UTC](https://forum.sierrawireless.com/t/gl7812-server-configuration-assistance/34814/10 "2025-05-12T15:40:16Z")

</div>

no, i don’t think it will enter data mode automatically
