Hi
​Chamara​
,

Today we found out that even when the Host Names are configured in the
> carbonl.xml to be server's identified domain name, the QR code which is
> generated while device registration, uses the host ip address which is
> picked up from nowhere.
>
​
Actually this IP is taking from the PAN. In my machine, if I dont set it
manually from the carbon.xml to my wlan IP, it pics the pan1 (10.7.200.1)
and it breaks all the download links that are generated by the jaggery in
most of the time.

pan1      Link encap:Ethernet  HWaddr c2:1e:fe:3b:6a:6e
          inet addr:10.7.200.1  Bcast:10.7.200.255  Mask:255.255.255.0
          inet6 addr: fe80::c01e:feff:fe3b:6a6e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:156 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:28795 (28.7 KB)

wlan0     Link encap:Ethernet  HWaddr 84:3a:4b:9b:cf:66
          inet addr:192.168.1.10  Bcast:192.168.1.255
Mask:255.255.255.0
          inet6 addr: fe80::863a:4bff:fe9b:cf66/64
Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500
Metric:1
          RX packets:207466 errors:0 dropped:0 overruns:0
frame:0
          TX packets:41603 errors:0 dropped:0 overruns:0
carrier:0
          collisions:0
txqueuelen:1000

          RX bytes:209272568 (209.2 MB)  TX bytes:7936480 (7.9 MB) ​

​To overcome t​his, what I do is uncomment the <ServerURL> tag from the
carbon.xml and set it to my wlan ip.
<ServerURL>https://192.168.1.10:
${carbon.management.port}${carbon.context}/services/</ServerURL>

​Regards,​

-- 
*Milan Perera *| Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 77 309 7088 | Work: +94 11 214 5345
Email: mi...@wso2.com <ar...@wso2.com> | Web: www.wso2.com
<http://lk.linkedin.com/in/milanharinduperera>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to