+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
Wireless Networks Thread, Teacher laptops / Internet at home in Technical; Originally Posted by craiglay I created a very simple AutoIT script with a dialog box to switch the proxy on ...
  1. #16
    reggiep's Avatar
    Join Date
    Apr 2008
    Location
    In the vast area of space and time
    Posts
    1,548
    Thank Post
    517
    Thanked 56 Times in 50 Posts
    Rep Power
    29
    Quote Originally Posted by craiglay View Post
    I created a very simple AutoIT script with a dialog box to switch the proxy on and off. All it does is toggle the "Use a proxy server" tickbox so you'll need to set the proxies up before use.

    Disclaimer: This is my own homebrew work, thrown together when a teacher asked if it could be done. It has been tested but I am not responsible for use / misuse / computer catches fire. etc.
    I just played with the script and it works a treat. Thanks. I'm off to the autoit site to have a play.

  2. #17

    Join Date
    Apr 2008
    Posts
    60
    Thank Post
    10
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Quote Originally Posted by hotwired007 View Post
    does it work correctly when your trying to use a not networked PC?

    or just OWA doesn't work on any PC not in your network?
    This only happens using a teacher laptop at home, any other computer (not a member of the domain) will access it fine, just as any domain PC (including teacher laptop) has no issue connecting when on the school's network.

    To re-emphasise the point, I do not expect any problem to be with my script, or whether proxy is turned on/off but rather I believe some other function somewhere is confusing the matter.
    I do appreciate the efforts so far, and perhaps I have not explained the difficulty very well - which is part of the reason I have had no success in 'googleing' this problem.


    https://domainname/ resolves but shows page not found (regardless of location)
    https://ipaddress/ shows page not found (regardless of location)
    http://domainname/ tells me i must use https (regardless of location)
    http://ipaddress/ tells me i must use https (regardless of location)
    http://domainname/owa tells me i must use https (regardless of location)
    http://ipaddress/owa tells me i must use https (regardless of location)
    https://ipaddress/owa displays fine (regardless of location)

    https://domainname/owa displays on laptop when in school, displays on all PCs outside of school. However, teacher laptops (members of the school domain), when not connected to the school domain, are unable to get this page (and it has just occurred to me I need to double check the response code, but is either blank or 404 I'm sure).
    Last edited by itwasntme; 7th May 2008 at 02:52 PM.

  3. #18

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    I suspect it's something to do with IIS. Have you checked the configuration of that?

  4. #19

    Join Date
    Apr 2008
    Posts
    60
    Thank Post
    10
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Quote Originally Posted by Geoff View Post
    I suspect it's something to do with IIS. Have you checked the configuration of that?
    I've looked through it but I cannot imagine what would be wrong here, I mean, if it works without a problem when on the school network, and on home PCs, yet not on a domain pc on home network, what would I expect to find fault with in IIS?

  5. #20
    browolf's Avatar
    Join Date
    Jun 2005
    Location
    Mars
    Posts
    1,524
    Thank Post
    106
    Thanked 88 Times in 74 Posts
    Blog Entries
    46
    Rep Power
    40
    Quote Originally Posted by itwasntme View Post
    We do not want to allow staff to change proxies themselves, they inevitably get it wrong and cry that nothing works. It would also allow them to use a parent proxy instead of our inhouse proxies.
    yes yes thats what happens here. we say leave IE alone with our settings in and install firefox which wont have any proxy settings in.

    are you saying no proxy settings would work at school?

  6. #21

    Join Date
    Apr 2008
    Posts
    60
    Thank Post
    10
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Quote Originally Posted by browolf View Post
    yes yes thats what happens here. we say leave IE alone with our settings in and install firefox which wont have any proxy settings in.

    are you saying no proxy settings would work at school?
    They could enter an alternative LEA proxy which would bypass our logging proxy.

    I think I may have got it sorted out, by messing around with intranet zone info, I'll post when I'm sure.

  7. #22

    Join Date
    Jun 2008
    Location
    Windermere
    Posts
    4
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by craiglay View Post
    I created a very simple AutoIT script with a dialog box to switch the proxy on and off. All it does is toggle the "Use a proxy server" tickbox so you'll need to set the proxies up before use.

    Disclaimer: This is my own homebrew work, thrown together when a teacher asked if it could be done. It has been tested but I am not responsible for use / misuse / computer catches fire. etc.
    Hi,

    Was just working on something similar using Autoit when I stumbled across your posting. Can I suggest adding in the code below, (incomplete, but you get the idea). That way the complied script can be put in the logon script / Start folder, so that no user interaction is required.

    Begin Code ================

    $ip = Stringmid(@IPAddress1,1,8)

    if $IP = "192.168." Then
    MsgBox ( 0, "WSA Location Finder", "You are on the LAN")
    call ("SetLanProxy")
    Else
    MsgBox ( 0, "WSA Location Finder", "You are somewhere else")
    call ("SetNoProxy")
    EndIf

    exit

    Func SetLanProxy()
    ;Check IE is closed
    ;~ HttpSetProxy ( 2, "192.168.3.4:8080" )
    EndFunc

    Func SetNoProxy()
    ;Check IE is closed
    ;~ HttpSetProxy ( 1, "192.168.3.4:8080" )
    EndFunc

    END CODE==================

    My logic with this code is that our DHCP server hands out 192.168.* addresses, and a home networks tend not to (big assumption I am sure!). So the script runs, see's if it has a DHCP IP, if it does, it must be on the lan so runs the appropriate .reg files.

    Anyway hope this is helpful. This is my first ever post in EduGeek forums and hope the posting of code is OK.

    Richard.

  8. #23
    sahmeepee's Avatar
    Join Date
    Oct 2005
    Location
    Greater Manchester
    Posts
    795
    Thank Post
    20
    Thanked 70 Times in 42 Posts
    Rep Power
    33
    Quote Originally Posted by rmorris View Post
    Hi,


    My logic with this code is that our DHCP server hands out 192.168.* addresses, and a home networks tend not to (big assumption I am sure!). So the script runs, see's if it has a DHCP IP, if it does, it must be on the lan so runs the appropriate .reg files.

    Anyway hope this is helpful. This is my first ever post in EduGeek forums and hope the posting of code is OK.
    Posting code is fine, but you might want to use the code tags in the post editor to keep the formatting nice.

    As for the idea of going off IP address, I think you might be safer trying to ping a specific IP address on your network as that's much less likely to give a false positive than going off 192.168.* which many home routers will be dishing out.

    Rob van der Woude's awesome site has this handy code snippet for testing if a server is pingable in a batch:


    Code:
    A well known way to check if a server is still "on the air" is
    
    
    PING server | FIND "TTL=" >NUL
    IF ERRORLEVEL 1 ECHO Error pinging server
    
    In Windows 95/98/NT this will result in 4 tries from PING to detect the presence of server.
    When checking large amounts of servers, some time could be saved by a fast check, followed by a more thorough check only when the first check fails.
    
    
    PING server -n 1 | FIND "TTL=" >NUL
    IF NOT ERRORLEVEL 1 GOTO Next
    PING server -w 3000 | FIND "TTL=" >NUL
    IF ERRORLEVEL 1 ECHO Error pinging server
    :Next
    HTH!

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Teacher Laptops - Internet Settings when offline
    By ajbritton in forum Internet Related/Filtering/Firewall
    Replies: 30
    Last Post: 9th March 2009, 01:59 PM
  2. Teacher unable to home log on to notebook PC
    By speckytecky in forum Windows
    Replies: 8
    Last Post: 15th November 2007, 10:12 AM
  3. Lifespan of your teacher laptops?
    By pete in forum Hardware
    Replies: 18
    Last Post: 12th October 2007, 07:31 PM
  4. teacher's laptops offline files
    By chrbb in forum Windows
    Replies: 10
    Last Post: 21st December 2006, 01:43 PM
  5. Replies: 18
    Last Post: 12th November 2006, 10:09 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •