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

<br>~l0nwlf<br><br><br><div class="gmail_quote">On Sat, Feb 20, 2010 at 2:06 PM, MattB <span dir="ltr"><<a href="mailto:mattbarkan@gmail.com">mattbarkan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

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