# Local Wi-Fi cannot connect to WAN Wi-fi in concurrent mode

**URL:** <https://forum.amebaiot.com/t/local-wi-fi-cannot-connect-to-wan-wi-fi-in-concurrent-mode/4046>\
**Category:** WiFi\
**Tags:** rtl8735b, evb-amb82\
**Created:** [April 16, 2025, 4:11pm UTC](https://forum.amebaiot.com/t/local-wi-fi-cannot-connect-to-wan-wi-fi-in-concurrent-mode/4046 "2025-04-16T16:11:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Will](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/will/32/2615_2.png) [@Will](https://forum.amebaiot.com/u/Will)\
**Post date:** [April 16, 2025, 4:11pm UTC](https://forum.amebaiot.com/t/local-wi-fi-cannot-connect-to-wan-wi-fi-in-concurrent-mode/4046/1 "2025-04-16T16:11:18Z")

</div>

依照[WiFi – Concurrent Mode – Realtek IoT/Wi-Fi MCU Solutions](https://www.amebaiot.com/zh/amebapro2-arduino-concurrent/)

1.AMB82-mini取得WAN端IP 192.168.213.92  
2.PC取得AMB82-mini soft-AP的IP 192.168.1.100，PC可以連到192.168.1.1，但是PC卻連不到192.168.213.92

未開放local Wi-Fi連接WAN端的internet  
是否符合原廠API的設計?

===============================================================  
[Driver]: TSFValue = 3773951385634, tsf = 0, shift\_set= 0x8000, bcn int = 100  
Interface 0 IP address : 192.168.213.92

AP mode already started  
IP Address: 192.168.1.1  
NetMask: 255.255.255.0  
Gateway: 192.168.1.1

Connected to the network  
IP Address: 192.168.213.92  
NetMask: 255.255.255.0  
Gateway: 192.168.213.1

## SSID: Apple\_Milk BSSID: 38:AD:2B:4C:FB:36 signal strength (RSSI):-47 Encryption Type:4

[Driver]: +OnAuth: 76:b2:bc:84:2d:1e  
[Driver]: +OnAssocReq  
[Driver]: set pairwise key to hw: alg:4(WEP40-1 WEP104-5 TKIP-2 AES-4) for 76:b2:bc:84:2d:1e  
[Driver]: set group key to hw: alg:4(WEP40-1 WEP104-5 TKIP-2 AES-4) keyid:1  
[251095]DHCP assign ip = 192.168.1.100, hwaddr 0x76:0xb2:0xbc:0x84:0x2d:0x1e

---

<div class="post-metadata">

**Author:** ![KevinKL](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kevinkl/32/2632_2.png) [@KevinKL](https://forum.amebaiot.com/u/KevinKL)\
**Post date:** [April 21, 2025, 8:24am UTC](https://forum.amebaiot.com/t/local-wi-fi-cannot-connect-to-wan-wi-fi-in-concurrent-mode/4046/2 "2025-04-21T08:24:22Z")

</div>

您好

請問有辦法分享您的程式碼嗎? 如果您想連到Ameba STA mode的IP, 您的PC必須與Ameba存在同一個LAN裡, 也就是說Ameba和PC都要連到同一個AP的情況下, 才可連上  
若您的PC 是連到Ameba 所建立的AP, 那就只能連到 Ameba AP 的IP喔

謝謝

---

<div class="post-metadata">

**Author:** ![Will](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/will/32/2615_2.png) [@Will](https://forum.amebaiot.com/u/Will)\
**Post date:** [April 23, 2025, 10:02am UTC](https://forum.amebaiot.com/t/local-wi-fi-cannot-connect-to-wan-wi-fi-in-concurrent-mode/4046/3 "2025-04-23T10:02:01Z")

</div>

純粹是原廠examples → Wi-Fi → concurrentMode中的sample code，我沒有變更程式架構修改，僅變更兩組SSID名稱與密碼

但我不清楚的是concurrent mode的定義  
從原廠sample code來說

1. 第一組SSID與密碼：用來連結我家裡的分享器。你說的網路條件與限制，我是理解的，沒疑問。
2. 第二組SSID與密碼：是Ameba建立的AP，由於照你的說明「若您的PC 是連到Ameba 所建立的AP, 那就只能連到 Ameba AP 的IP喔」你說的與我測試的結果一致，我本來以為PC不但可連到Ameba建立的AP, 還可以透過routing, 經由第一組SSID間接連到家中的分享器(甚至internet)

是否因為CPU效能原因，不加上Ameba AP routing 至家中分享器？  
如果不是，原廠能夠加上這個routing功能嗎？  
讓Ameba運作時不需要靠外在的router就可獨立運作(PC手機直連Ameba AP)，此外，Ameba若連上有internet的分享器，則增加更多internet上的應用，而手機依然不改變連到Ameba的AP

感謝你的回覆

---

<div class="post-metadata">

**Author:** ![KevinKL](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/kevinkl/32/2632_2.png) [@KevinKL](https://forum.amebaiot.com/u/KevinKL)\
**Post date:** [April 28, 2025, 7:52am UTC](https://forum.amebaiot.com/t/local-wi-fi-cannot-connect-to-wan-wi-fi-in-concurrent-mode/4046/4 "2025-04-28T07:52:41Z")

</div>

您好

concurrent mode的用途在於讓Ameba 連上外面網路的同時又可以打開soft ap來傳輸資訊給內網station, softap and station這兩個interface是分開獨立運作的

至於是否因為CPU效能原因，不加上Ameba AP routing 至家中分享器？  
Ameba主要是IoT設備, CPU和Memory方面與市售router是有差異的, 所以不適合用來充當router的功能

謝謝
