NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Connection to the Client address (IP Address) is not allowed


Joined: 17 Apr 2006
Posts: 7
Reply with quote
Hi,

I hope there is someone from NuSphere team that can help me to find out why my phpEd debugger is not working.

I have phpED V 4.0.1 Build 4057 running in window XP Professional with IIS 5.1 but there is not way that
I can make the debugger listener work with my own PHP version.

I followed all the instructions that are in the php manual to install and set up the PHP DBG listener but I cannot
make it work.

I am getting the following error message;

Reason: connection to the client address 66.168.185.37:7869 is not allowed
Not sure what it means? Visit http://www.nusphere.com/dbg/ for troubleshooting.


Debugger request: "388239217858600001@66.168.185.37;d=1,p=0"
Request found in: "query_string"
Target PHP version: "4.3.6"
Server API: "ISAPI"
Extensions API: "20021010"
Modules API: "20020429"
PHP API: "20020918"

Above are some printouts of the settings in my computer;

PHP DBG listener v 2.18.5


Some php.ini settings;

This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with DBG v2.18.2, (C) 2000,2005, by Dmitri Dmitrienko

dbg
DBG php debugger, version 2.18.2, Copyright 2001, 2005 Dmitri Dmitrienko, http://www.nusphere.com/dbg

Version 2.18.2
Linked as a shared library.
Dbg security enabled.
Profiler compiled, enabled
Target PHP version 4.3.6
Server API ISAPI
Extensions API 20021010
Modules API 20020429
PHP API 20020918


php.ini settings with NOTEPAD


;extension=php_zip.dll
extension=php_dbg.dll

[debugger]
debugger.enabled=on
debugger.profiler_enabled=on
debugger.hosts_allow=24.159.106.23,12.7.0.0.1,66.168.185.37
debugger.hosts_deny=ALL
debugger.ports=7869,10000/16


I think your product is great and I am thinking to purchase the last version and an additional license copy,
but I need to make this work with my own php version, not only with your own php built in version.


Please help me to find out what the problem might be.


Thanks.
View user's profileFind all posts by MBENAVIDSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
debugger.hosts_allow=24.159.106.23,12.7.0.0.1,66.168.185.37

12.7.0.0.1 does not look like a correct IP address. Perhaps you wanted 127.0.0.1

let know if it helped
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 17 Apr 2006
Posts: 7
Reply with quote
Thanks for show me this error in my settings.
You are right. It should be 127.0.0.1 and I corrected it in the php.ini
file and I restarted the IIS server. Also I verified that in my window firewall I am allowing access to port 7869.

But I am still getting the same error;

DBG 2.18.2

Failed to run DBG session


Reason: connection to the client address 127.0.0.1:7869 is not allowed
Not sure what it means? Visit http://www.nusphere.com/dbg/ for troubleshooting.


Debugger request: "388258839923300001@127.0.0.1;d=1,p=0"
Request found in: "query_string"
Target PHP version: "4.3.6"
Server API: "ISAPI"
Extensions API: "20021010"
Modules API: "20020429"
PHP API: "20020918"

But now, at least if I use the TELNET 127.0.0.1 7869 command,

the DBG listener is showing the little white circle that means it is listening...
and it says fetching client.

/18/2006 9:11:49 PM Listener started
4/18/2006 9:11:50 PM IDE "PhpED IDE Version 4.0.1 (Build 4057)" registered
4/18/2006 9:11:50 PM Listener started
4/18/2006 9:14:14 PM 127.0.0.1 client connected
4/18/2006 9:14:44 PM 127.0.0.1 wrong client, disconnecting

If I used the ipconfig command in the DOS command prompt and I can see that
my IP is 66.168.185.37.

I am trying to find out in the forum the errors that says; wrong client, disconnecting (????)
View user's profileFind all posts by MBENAVIDSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Message "connection to the client address XXX.XX.XX.XX:PPPP is not allowed" means that debugger has limited itself from connecting at the address/port specified. In other words, you have settings in php.ini that did not allow it to connect.
Please run phpinfo(), locate path to php.ini, open this php.ini in your favorite editor and make sure the settings are fine.
Checking phpinfo is necessary because often people edit one configuration file while php itself uses another.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 17 Apr 2006
Posts: 7
Reply with quote
Finally, I make my debugger work. !!!!.

I reviewed carefully all the settings in the php.ini and they were OK and I tried several things when troubleshooting this.
I copied a php_dbg-dll-4.3.6 (this is the copy for my php version) to the directory specified under the Configuration file php.ini path. mine is c:\windows\php.ini.
I had already copied a php_dbg-dll.4.3.6 to the directory specified in the Extension_dir setting of my php.ini
(mine is c:\php4.3.6-win32\extensions')
but it was not enough.

Once I copied this file to the c:\windows\ it works now.


Thanks for your support.
View user's profileFind all posts by MBENAVIDSend private message
Connection to the Client address (IP Address) is not allowed
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic