111 connection refused

4 views
Skip to first unread message

sdh...@biap.com

unread,
Jun 24, 2005, 2:28:51 PM6/24/05
to Miami-progr...@googlegroups.com
I am trying to execute a script from my php code, and am doing a
fsockopen. The port number is 1962. if i hit the page via the browser
http://<ip>:1962/html/agent_status.html it loads up fine. If i do a
fsockopen on the ip on port 1962 i get a connection refused.

What settings should i be checking on the server to get the socket to
work?

This code works on some machine but not others...i was thinking
firewall,but then i probably should not be able to hit the page from
the browser right?

Any help would be appreciated
Thanks
~Shawn

derz...@gmail.com

unread,
Jun 24, 2005, 3:07:06 PM6/24/05
to Miami-progr...@googlegroups.com

hi Shawn,

I am not sure at all this is the answer, but sometimes daemons listen
on certains IP and not others, with more specifications from you i
would be able to help kind of more but :

Imaging your daemon listens on 192.168.1.2 but is not binded to listen
on 127.0.0.1, then a connection attempts on 127.0.0.1 would be refused
but a connection on 192.168.1.2 would be accepted.

the browser you use is located on the server you are executing the php
script ? another method 'not pretty' would be from the server to telnet
w.x.y.z 1962 - this would give you the daemon listening there but not
there answer.

Hope to be helpfull on this one

Guillaume

Reply all
Reply to author
Forward
0 new messages