Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 09:57:09 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155445 Posts in 21703 Topics by 7731 Members
Latest Member: zvaigzdzius
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: LOGIN not Accepted from any terminal except the host (127.0.0.1)  (Read 883 times)
xoanon

Offline Offline

Posts: 19


« on: October 29, 2008, 08:09:54 AM »

I am currentrl hosting  WB on one of my PCs at home.
I use the DYNDNS service to point back to my router/system etc.

So when I connect to WB using the server-pc everything is ok (log shows user-id 127.0.0.1 connected)

however when I try to LOGIN to WB from any other PC via the DYNDNS service where the user gets my network IP address(provided by my ISP) 124.xxx.xxx.xxx then it fails to login and keeps asking to try again & again....

any thoughts?
« Last Edit: October 29, 2008, 06:54:23 PM by xoanon » Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #1 on: October 29, 2008, 09:40:01 PM »

You will need to tell us more about your setup ... and a bit about the WB config.

Is the router connected via static or dynamic IP (in the second case you will need a dynDNS for the router)? Does the router forward your HTTP requests to the server on the right ports?

In the WB config.php what do you use for the HTTP Strings in the URL (IP or hostname and which)?

Does the webserver / operating system allow connections from other machines?

cheers

Klaus


Logged

WebsiteBaker Org e.V. - for WebsiteBaker

xoanon

Offline Offline

Posts: 19


« Reply #2 on: October 30, 2008, 04:47:36 AM »

my config.php is as follows:

define('DB_TYPE', 'mysql');
define('DB_HOST', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', 'xxx');
define('DB_NAME', 'wb');
define('TABLE_PREFIX', '');

define('WB_PATH', dirname(__FILE__));
define('WB_URL', 'http://gvaa.homeip.net/wb');
define('ADMIN_PATH', WB_PATH.'/admin');
define('ADMIN_URL', 'http://gvaa.homeip.net/wb/admin');

require_once(WB_PATH.'/framework/initialize.php');


There is a dynamic IP and I use a DNSupdater to sync the router and the DNS service.
all httprequests are passed correctly.


The domain is parked and points to a service provided by DynDNS;
mydoman------>> //gvaa.homeip.net  this also points to //gvaa.webhop.org:xxxx/wb (which does the webhoping and masks the path etc).

Local host windows config:  so it does not have to go outside the home network for requests straight from the server/host terminal

192.168.1.9   localhost
127.0.0.1       gvaa.webhop.org
127.0.0.1      gvaa.homeip.net

ACCESS LOG
127.0.0.1 - - [30/Oct/2008:14:23:55 +1100] "GET / HTTP/1.1" 200 4075
127.0.0.1 - - [30/Oct/2008:14:23:56 +1100] "GET /index.php?img=favicon HTTP/1.1" 200 13262
127.0.0.1 - - [30/Oct/2008:14:23:56 +1100] "GET /index.php?img=pngFolder HTTP/1.1" 200 850
127.0.0.1 - - [30/Oct/2008:14:23:56 +1100] "GET /index.php?img=gifLogo HTTP/1.1" 200 5172
127.0.0.1 - - [30/Oct/2008:14:23:56 +1100] "GET /index.php?img=pngPlugin HTTP/1.1" 200 548
127.0.0.1 - - [30/Oct/2008:14:23:56 +1100] "GET /index.php?img=pngWrench HTTP/1.1" 200 741
127.0.0.1 - - [30/Oct/2008:14:23:56 +1100] "GET /index.php?img=pngFolderGo HTTP/1.1" 200 694
127.0.0.1 - - [30/Oct/2008:14:24:08 +1100] "GET /wb HTTP/1.1" 301 230
127.0.0.1 - - [30/Oct/2008:14:24:08 +1100] "GET /wb/ HTTP/1.1" 302 -
127.0.0.1 - - [30/Oct/2008:14:24:10 +1100] "GET /wb/pages/en/home.php HTTP/1.1" 200 15682
127.0.0.1 - - [30/Oct/2008:14:24:11 +1100] "GET /wb/pages/en/img/favicon.ico HTTP/1.1" 404 225
127.0.0.1 - - [30/Oct/2008:14:24:11 +1100] "GET /wb/templates/multiflex-53/css/mf54_reset.css HTTP/1.1" 200 1684
127.0.0.1 - - [30/Oct/2008:14:24:11 +1100] "GET /wb/templates/multiflex-53/css/mf54_content.css HTTP/1.1" 200 27968
127.0.0.1 - - [30/Oct/2008:14:24:11 +1100] "GET /wb/templates/multiflex-53/css/mf54_grid.css HTTP/1.1" 200 17464
127.0.0.1 - - [30/Oct/2008:14:24:11 +1100] "GET /wb/templates/multiflex-53/img/en.gif HTTP/1.1" 200 1449
127.0.0.1 - - [30/Oct/2008:14:24:11 +1100] "GET /wb/templates/multiflex-53/img/gr.gif HTTP/1.1" 200 1261
127.0.0.1 - - [30/Oct/2008:14:24:11 +1100] "GET /wb/templates/multiflex-53/img/icon_rss.gif HTTP/1.1" 200 1480
127.0.0.1 - - [30/Oct/2008:14:24:11 +1100] "GET /wb/admin/images/modify_16.png HTTP/1.1" 200 642
127.0.0.1 - - [30/Oct/2008:14:24:12 +1100] "GET /wb/templates/multiflex-53/img/bg_bullet_arrow.gif HTTP/1.1" 200 158
127.0.0.1 - - [30/Oct/2008:14:24:11 +1100] "GET /wb/templates/multiflex-53/img/bg_corner_top.gif HTTP/1.1" 200 1037
127.0.0.1 - - [30/Oct/2008:14:24:11 +1100] "GET /wb/templates/multiflex-53/img/bg_header_top.jpg HTTP/1.1" 200 679
127.0.0.1 - - [30/Oct/2008:14:24:12 +1100] "GET /wb/templates/multiflex-53/img/bg_corner_content_cell_top.gif HTTP/1.1" 200 292
127.0.0.1 - - [30/Oct/2008:14:24:12 +1100] "GET /wb/templates/multiflex-53/img/bg_corner_bottom.gif HTTP/1.1" 200 1037
127.0.0.1 - - [30/Oct/2008:14:24:11 +1100] "GET /wb/templates/multiflex-53/img/bg_header.jpg HTTP/1.1" 200 697
127.0.0.1 - - [30/Oct/2008:14:24:12 +1100] "GET /wb/templates/multiflex-53/img/bg_corner_subcontent_cell_top.gif HTTP/1.1" 200 250
127.0.0.1 - - [30/Oct/2008:14:24:12 +1100] "GET /wb/templates/multiflex-53/img/bg_corner_content_cell_bottom.gif HTTP/1.1" 200 292
127.0.0.1 - - [30/Oct/2008:14:24:11 +1100] "GET /wb/templates/multiflex-53/img/bg_header_bottom.jpg HTTP/1.1" 200 659
127.0.0.1 - - [30/Oct/2008:14:24:11 +1100] "GET /wb/templates/multiflex-53/img/bg_logo.jpg HTTP/1.1" 200 26161
127.0.0.1 - - [30/Oct/2008:14:24:12 +1100] "GET /wb/templates/multiflex-53/img/bg_bullet_square.gif HTTP/1.1" 200 98
127.0.0.1 - - [30/Oct/2008:14:24:12 +1100] "GET /wb/templates/multiflex-53/img/bg_corner_subcontent_cell_bottom.gif HTTP/1.1" 200 251
127.0.0.1 - - [30/Oct/2008:14:24:12 +1100] "GET /wb/templates/multiflex-53/img/icon_celltitle_level1.gif HTTP/1.1" 200 1215
127.0.0.1 - - [30/Oct/2008:14:24:14 +1100] "GET /wb/pages/en/img/favicon.ico HTTP/1.1" 404 225
LOG-OUT
127.0.0.1 - - [30/Oct/2008:14:25:39 +1100] "POST /wb/account/logout.php HTTP/1.1" 302 -
127.0.0.1 - - [30/Oct/2008:14:25:39 +1100] "GET /wb/index.php HTTP/1.1" 302 -
127.0.0.1 - - [30/Oct/2008:14:25:39 +1100] "GET /wb/pages/en/home.php HTTP/1.1" 200 16096
LOG-IN
127.0.0.1 - - [30/Oct/2008:14:25:57 +1100] "POST /wb/account/login.php HTTP/1.1" 302 -
127.0.0.1 - - [30/Oct/2008:14:25:58 +1100] "GET /wb/pages/index.php HTTP/1.1" 302 -
127.0.0.1 - - [30/Oct/2008:14:25:58 +1100] "GET /wb/pages/gr/archiko-menoy.php HTTP/1.1" 200 21508
127.0.0.1 - - [30/Oct/2008:14:25:58 +1100] "GET /wb/pages/gr/img/favicon.ico HTTP/1.1" 404 225
127.0.0.1 - - [30/Oct/2008:14:26:01 +1100] "GET /wb/pages/gr/img/favicon.ico HTTP/1.1" 404 225

LOG-FROM ANOTHER WORKSTATION that uses the DNS SERVICE[
124.170.148.230 - - [30/Oct/2008:14:30:50 +1100] "GET /wb HTTP/1.1" 301 239
124.170.148.230 - - [30/Oct/2008:14:30:50 +1100] "GET /wb/ HTTP/1.1" 302 -
124.170.148.230 - - [30/Oct/2008:14:34:30 +1100] "GET /wb HTTP/1.1" 301 239
124.170.148.230 - - [30/Oct/2008:14:34:30 +1100] "GET /wb/ HTTP/1.1" 302 -
124.170.148.230 - - [30/Oct/2008:14:34:31 +1100] "GET /wb/pages/en/home.php HTTP/1.1" 200 16096
124.170.148.230 - - [30/Oct/2008:14:34:32 +1100] "GET /wb/templates/multiflex-53/css/mf54_grid.css HTTP/1.1" 304 -
124.170.148.230 - - [30/Oct/2008:14:34:36 +1100] "GET /wb/templates/multiflex-53/img/bg_header.jpg HTTP/1.1" 304 -
124.170.148.230 - - [30/Oct/2008:14:34:36 +1100] "GET /wb/templates/multiflex-53/img/bg_header_top.jpg HTTP/1.1" 304 -
124.170.148.230 - - [30/Oct/2008:14:34:36 +1100] "GET /wb/templates/multiflex-53/img/bg_header_bottom.jpg HTTP/1.1" 304 -
124.170.148.230 - - [30/Oct/2008:14:34:36 +1100] "GET /wb/templates/multiflex-53/img/en.gif HTTP/1.1" 304 -
124.170.148.230 - - [30/Oct/2008:14:34:36 +1100] "GET /wb/templates/multiflex-53/img/gr.gif HTTP/1.1" 304 -
124.170.148.230 - - [30/Oct/2008:14:34:37 +1100] "GET /wb/templates/multiflex-53/img/icon_rss.gif HTTP/1.1" 304 -


NOW TRY to LOGIN from this workstation
124.170.148.230 - - [30/Oct/2008:14:38:37 +1100] "GET /wb/account/login.php HTTP/1.1" 200 14654

TRY to USE an INVALID USER NAME
124.170.148.230 - - [30/Oct/2008:14:43:07 +1100] "GET /wb/account/login.php HTTP/1.1" 200 14654

OTHER PAGES DISPLAYED OK
124.170.148.230 - - [30/Oct/2008:15:44:43 +1100] "GET /wb/pages/en/home/past-presidents.php HTTP/1.1" 200 14486

There were no issues with the PHP & MySQL logs

« Last Edit: October 30, 2008, 12:35:43 PM by xoanon » Logged
xoanon

Offline Offline

Posts: 19


« Reply #3 on: November 01, 2008, 07:41:28 AM »

As soos as I removed Port fwd (in NAT router)  and used straight DMZ server the problem solved

regards
Tony
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #4 on: November 01, 2008, 10:15:41 AM »

So then it had to do with your port configuration. What actually happens when you "switch on" a DMZ is that all requests to ports not defined by a forwarding rule get passed on to the DMZ Server.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!