configuring confbot with proxy

1 view
Skip to first unread message

MountCleverest

unread,
Jun 25, 2007, 4:53:25 AM6/25/07
to confbot
Hi,
I am trying to set up confbot on my windows 2000 prof. machine, but
have been facing many problems...
first error i got was
File "confbot.py", line 1077, in <module>
connect()
File "confbot.py", line 976, in connect
con.connect()
File "C:\Documents and Settings\Administrator\Desktop\confbot-
v1_32\bot\jabber
.py", line 358, in connect
raise IOError(e)
IOError: (11001, 'getaddrinfo failed')

i connect to the internet using a proxy(direct connection is not
possible) so in cmd i "set proxy='myproxy.com:8080'"

After this also i got the same error, so i tried to ping
talk.google.com and i realised that my dns server wasnt returning the
address properly...
so i opened xmlstream.py and there i replaced talk.google.com with the
IP address that i got from a web based DNS server... i.e.
209.85.137.125

After this i tried again, and now the error changed to:-
File "confbot.py", line 1077, in <module>
connect()
File "confbot.py", line 976, in connect
con.connect()
File "C:\Documents and Settings\Administrator\Desktop\confbot-
v1_32\bot\jabber
.py", line 358, in connect
raise IOError(e)
IOError: (10061, 'Connection refused')

I browsed through the code and thought that mayb the port number is
not correct so i added "print self._port" just before it errors out...
that printed 5223, which is the correct port for accessing Gtalk
through jabber based clients, so now i am totally stuck and have no
idea what else to do...
just getting the connection refused error..

any help possible???

limodou

unread,
Jun 25, 2007, 4:55:45 AM6/25/07
to con...@googlegroups.com
For now, I know that the confbot doesn't support proxy.

On 6/25/07, MountCleverest <sanjay.gi...@gmail.com> wrote:
>
> ~}Hi,

> --~~--~~---------~~--~~----~~------------~~-------~~--~~----~~
> ~{DzJU5=4KPEO"JGSISZDz6)TDAK~} Google ~{B[L3~}"confbot"~{B[L3!#~}
> ~{R*TZ4KB[L37"L{#,Gk7"5gWSSJ<~5=~} con...@googlegroups.com
> ~{R*MK6)4KB[L3#,Gk7"SJ<~VA~} confbot-u...@googlegroups.com
> ~{8|6`Q!On#,GkM(9}~} http://groups.google.com/group/confbot?hl=zh-CN ~{7CNJ8CB[L3~}
> -~~----------~~----~~----~~----~~------~~----~~------~~--~~---
>
>


--
I like python!
UliPad <<The Python Editor>>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou

Sanjay Gianchandani

unread,
Jun 25, 2007, 5:06:18 AM6/25/07
to con...@googlegroups.com
ya i know that natively confbot doesnt support proxy(i dont know why)
but once the i hav set the environment variable proxy, then python can access the net,
why not confbot?
i think this is because confbot uses the socket library using socket.socket.connect() which is a low level netwrking library...
i am not aware if this library allows usage of proxy to connect...
i am a newbie in python so if any1 here knows, please tell me

other way wud b to use the high level web access library of urllib or urllib2 both of whch support proxy, but i believe making this change would require extensive changes in the code..am i correct? or is there some command which can be used to just replace the socket.connect in line 358 of xmlstream.py?

any python wizards on this group that can help me?

On 6/25/07, limodou < lim...@gmail.com> wrote:

~}For now, I know that the confbot doesn't support proxy.

On 6/25/07, MountCleverest <sanjay.gi...@gmail.com> wrote:
>
> ~~}Hi,
> --~~~~--~~~~---------~~~~--~~~~----~~~~------------~~~~-------~~~~--~~~~----~~~~
> ~~{DzJU5=4KPEO"JGSISZDz6)TDAK~~} Google ~~{B[L3~~}"confbot"~~{B[L3!#~~}
>  ~~{R*TZ4KB[L37"L{#,Gk7"5gWSSJ<~~5=~~} con...@googlegroups.com
>  ~~{R*MK6)4KB[L3#,Gk7"SJ<~~VA~~} confbot-u...@googlegroups.com
>  ~~{8|6`Q!On#,GkM(9}~~} http://groups.google.com/group/confbot?hl=zh-CN ~~{7CNJ8CB[L3~~}
> -~~~~----------~~~~----~~~~----~~~~----~~~~------~~~~----~~~~------~~~~--~~~~---

>
>


--
I like python!
UliPad <<The Python Editor>>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou

--~~--~~---------~~--~~----~~------------~~-------~~--~~----~~
~{DzJU5=4KPEO"JGSISZDz6)TDAK~} Google ~{B[L3~}"confbot"~{B[L3!#~}
~{R*TZ4KB[L37"L{#,Gk7"5gWSSJ<~5=~} con...@googlegroups.com
~{R*MK6)4KB[L3#,Gk7"SJ<~VA~} confbot-u...@googlegroups.com
~{8|6`Q!On#,GkM(9}~} http://groups.google.com/group/confbot?hl=zh-CN ~{7CNJ8CB[L3~}
-~~----------~~----~~----~~----~~------~~----~~------~~--~~---




--
****************************************************************************
§âñjây
************************Words from my heart****************************
We dont need no education!
give us free pizza instead ;)
*****************************************************************************

limodou

unread,
Jun 25, 2007, 5:29:24 AM6/25/07
to con...@googlegroups.com
On 6/25/07, Sanjay Gianchandani <sanjay.gi...@gmail.com> wrote:
> ya i know that natively confbot doesnt support proxy(i dont know why)
> but once the i hav set the environment variable proxy, then python can
> access the net,
> why not confbot?

Because jabber.py doesn't support proxy.

> i think this is because confbot uses the socket library using
> socket.socket.connect() which is a low level netwrking library...
> i am not aware if this library allows usage of proxy to connect...
> i am a newbie in python so if any1 here knows, please tell me
>
> other way wud b to use the high level web access library of urllib or
> urllib2 both of whch support proxy, but i believe making this change would
> require extensive changes in the code..am i correct? or is there some
> command which can be used to just replace the socket.connect in line 358 of
> xmlstream.py?

Yeah, urllib could support proxy very well, and I don't know how to
make jabber.py support proxy, it's beyond my skill. I'm sorry. I don't
know if the simple replacement will do the work, and you can try it
yourself.

>
> any python wizards on this group that can help me?
>

--

Sanjay Gianchandani

unread,
Jun 25, 2007, 5:32:18 AM6/25/07
to con...@googlegroups.com
i tried.. and failed..
:(
anyways currently am looking at something like runsocks of unix for windows, which can handle the socket commands appropriately...any experience with that?

On 6/25/07, limodou <lim...@gmail.com> wrote:
--~~--~~---------~~--~~----~~------------~~-------~~--~~----~~
~{DzJU5=4KPEO"JGSISZDz6)TDAK~} Google ~{B[L3~}"confbot"~{B[L3!#~}
~{R*TZ4KB[L37"L{#,Gk7"5gWSSJ<~5=~} con...@googlegroups.com
~{R*MK6)4KB[L3#,Gk7"SJ<~VA~} confbot-u...@googlegroups.com
~{8|6`Q!On#,GkM(9}~} http://groups.google.com/group/confbot?hl=zh-CN ~{7CNJ8CB[L3~}
-~~----------~~----~~----~~----~~------~~----~~------~~--~~---

Sanjay Gianchandani

unread,
Jun 25, 2007, 5:32:58 AM6/25/07
to con...@googlegroups.com

limodou

unread,
Jun 25, 2007, 5:41:04 AM6/25/07
to con...@googlegroups.com
On 6/25/07, Sanjay Gianchandani <sanjay.gi...@gmail.com> wrote:
> for windows its socksCap
> http://soft.softoogle.com/ap/sockscap-download-5157.shtml
>
I'm not an expert of socket, so I have no idea for this, hope others
can help this. I'm sorry. :-(
Reply all
Reply to author
Forward
0 new messages