Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2013-12-07 15:45:41

Hien Trung Nguyen
Member
Registered: 2013-12-07
Posts: 5

Change $_SERVER['SERVER_ADDR'] in GEO config for host in IIS

When i config GEO, i can't save config, so then i debug and found $_SERVER['SERVER_ADDR'] always return empty so i change it to gethostbyname($_SERVER['SERVER_NAME'])
Refer: http://stackoverflow.com/questions/5705082/is-serverserver-addr-safe-to-rely-on


https://groups.google.com/forum/#!topic … ik92Vj9Q1g

Offline

#2 2013-12-07 19:59:17

Remigijus Kiminas
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Change $_SERVER['SERVER_ADDR'] in GEO config for host in IIS

Hi,

Implemented. https://github.com/remdex/livehelperchat/commit/f7c34278a271df21048bc66739529773c7b872ac



2013/12/7 Hien Trung Nguyen <mr.hie...***.com>

When i config GEO, i can't save config, so then i debug and found $_SERVER['SERVER_ADDR'] always return empty so i change it to gethostbyname($_SERVER['SERVER_NAME'])
Refer: http://stackoverflow.com/questions/5705082/is-serverserver-addr-safe-to-rely-on



Offline

#3 2013-12-08 03:40:05

Hien Trung Nguyen
Member
Registered: 2013-12-07
Posts: 5

Re: Change $_SERVER['SERVER_ADDR'] in GEO config for host in IIS

Thanks!

Vào 01:59:17 UTC+7 Chủ nhật, ngày 08 tháng mười hai năm 2013, Remigijus Kiminas đã viết:

Offline

#4 2013-12-08 04:02:49

Hien Trung Nguyen
Member
Registered: 2013-12-07
Posts: 5

Re: Change $_SERVER['SERVER_ADDR'] in GEO config for host in IIS

Hi Remigijus

Have a problem, this code $_SERVER['LOCAL_ADDR'] when run in local, it return ::1, so raise error when check service GEO, but when deloy to server , it ok (return static ip of server)
I use gethostbyname($_SERVER['SERVER_NAME']) for test and deloy, in test case it receive 127.0.0.1, so GEO service accept it.

Vào 01:59:17 UTC+7 Chủ nhật, ngày 08 tháng mười hai năm 2013, Remigijus Kiminas đã viết:Hi,

Implemented. https://github.com/remdex/livehelperchat/commit/f7c34278a271df21048bc66739529773c7b872ac

Offline

#5 2013-12-08 07:46:29

Remigijus Kiminas
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Change $_SERVER['SERVER_ADDR'] in GEO config for host in IIS

Ok try this updatehttps://github.com/remdex/livehelperchat/commit/2f8b2c83581303fe5795fe21c3344ef4ae0f2448



2013/12/8 Hien Trung Nguyen <mr.hie...***.com>

Offline

#6 2013-12-08 08:15:06

Hien Trung Nguyen
Member
Registered: 2013-12-07
Posts: 5

Re: Change $_SERVER['SERVER_ADDR'] in GEO config for host in IIS

It's ok, thanks for update!

Vào 13:46:29 UTC+7 Chủ nhật, ngày 08 tháng mười hai năm 2013, Remigijus Kiminas đã viết:

Offline

Board footer