Can't Access ANY url from python (errno 61)

Shashwat Anand anand.shashwat at gmail.com
Sat Feb 20 09:59:12 CET 2010


throw up your 'ifconfig' and mozilla-proxy output here. It seems you don't
know whether you are using proxy.
For mozilla proxy :
open mozilla -> cmd + "," -> Network -> Settings -> Paste everything that is
there/ may be take a snapshot and upload a link.

~l0nwlf


On Sat, Feb 20, 2010 at 2:06 PM, MattB <mattbarkan at gmail.com> wrote:

> On Feb 20, 2:02 am, Lie Ryan <lie.1... at gmail.com> wrote:
> > On 02/20/10 13:32, MattB wrote:
> >
> >
> >
> > > I'm using the network in my own apartment. Not the campus's.
> > > Moreover, my mac's MAC address is different from the MAC address shown
> > > by my router, but as I said I'm also blocked when using my friend's
> > > wireless router at his apartment.
> >
> > > So it must be my mac's MAC, and not the router's MAC, that's being
> > > blocked, right?
> >
> > > But ALSO -- is it my ISP that's blocking the mac's MAC (and not the
> > > school), since I can't raise ANY url's from python when I'm on
> > > wireless?
> >
> > MAC or IP blocking can't be the reason, as the OP stated, he can use
> > Firefox just fine.
> >
> > Can you access, say,http://www.google.comfrom urllib or mechanize?
> >
> > If you can't access *any website* using urllib/mechanize but you can
> > with a browser and you're on a unix-based machine, you probably have the
> > same problem as I used to have. Check whether you used the same hostname
> > in /etc/conf.d/hostname and /etc/hosts (or wherever your distro saves
> > its hostname configurations, I use Gentoo); after editing those files
> > reboot (there are ways to avoid reboot, but rebooting guarantees the
> > conf file is reread).
> >
> > Check the hostname by running this python script:
> >
> > import socket
> > hn = socket.gethostname()
> > print hn
> > print socket.gethostbyname(hn) # should be 127.0.0.1
>
> Lie,
>
> Wow. Strangely, that script returned 192.168.1.106. However, in Snow
> Leopard's airport settings, if I click on 'advanced' and then
> 'proxies', the default proxy for 'http' is 127.0.0.1:4444 (and in
> these settings, the 'use proxy for http' is checked).
>
> I just tried checking the unix files you mentioned. In etc/hosts, the
> following info is displayed:
>
> ##
> # Host Database
> #
> # localhost is used to configure the loopback interface
> # when the system is booting.  Do not change this entry.
> ##
>
>
> 127.0.0.1       localhost
> 255.255.255.255 broadcasthost
> ::1             localhost
> fe80::1%lo0     localhost
>
> Also found a file called ntp-restrict.conf, containing:
>
> # Access restrictions documented in ntp.conf(5) and
> # http://support.ntp.org/bin/view/Support/AccessRestrictions
> # Limit network machines to time queries only
>
> restrict default kod nomodify notrap nopeer noquery
> restrict -6 default kod nomodify notrap nopeer noquery
>
> # localhost is unrestricted
> restrict 127.0.0.1
> restrict -6 ::1
>
> includefile /private/etc/ntp.conf
>
> Not sure if these are what I'm looking for -- I'm new to unix so I may
> need a bit more hand-holding here.
>
> I appreciate your time and effort.
>
> Matt
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100220/ed83d3a0/attachment.html>


More information about the Python-list mailing list