Detecting HTTPS connection through WL4.5 NSAPI plugin?

ello,
I've looked around the newsgroups and on the support site for
similar threads but I haven't found any that have asked this question
yet.
We have a weblogic 4.5 instance listening for requests on 8000 via
the NSAPI plugin and Netscape Enterprise Server. NES is handing off all
requests for JSP pages to the WL plugin.NES's http port is 80, and for
https, 443. In both cases, traffic gets directed to WL port 8000 (in raw
text). I've got all that under control.
The problem is that for some of the JSP's that are "secure", we want
to require that certain pages only be accessible via https. But I
haven't found a satisfactory way of doing that yet, because due to the
NSAPI plugin everything comes to WL with URL's starting with "http"....
The best that I can come up with to detect differences between
whether a connection is secure is that a few request headers show
slightly different info. But I'm not sure if these differences are
consistent and reproducible, or just due to my development setup.
Note: My development setup is the same as described above except
NES' http port is 7080.
request.getHeader("host"): HTTP: "wintermute:7080" HTTPS:
"wintermute"
request.getServerPort(): HTTP: "7080" HTTPS: "8000".
Everything else that I've queried for shows either identical or
non-existent values, e.g.,
request.getScheme() : "http" (for both HTTP and HTTPS)
request.getAuthType() : "" <nothing>
The Sun J2EE spec says that HttpServletRequest also has an
"isSecure()" method but it doesn't exist on my setup...
Will these differences hold up consistently (I assume the NSAPI
plugin is rewriting some headers)? Is there a better way to do this?
Any and all help is greatly appreciated.
Jack Lin

From the very little I know about NSAPI you can doctor the incomming url
prior to forwarding it to WLAS. One solution would be to prefix the url
with /secured/ so that wlas can determine that the page is sucure based on
the incomming request URI. I will be playing with the soon and let you know
how I go :)
Cheers
Rob
"Jack Lin" <[email protected]> wrote in message
news:[email protected]...
So is there a way I can do this in 4.51?
Jack
Cameron Purdy wrote:
Hmm ... I did not realize you were not on 5.1 ... sorry.
Cameron Purdy
"Jack Lin" <[email protected]> wrote in message
news:[email protected]...
Thanks for the response.
Actually I did try that based on the Sun Servlet API specs, but
for
whatever reason, that method doesn't appear to exist inHttpServletRequest.
This is the error I get.
Method isSecure() not found in interface
javax.servlet.http.HttpServletRequest.
out.print(weblogic.utils.StringUtils.valueOf(request.isSecure()
)); //[ jsp/unit_test/headers.jsp; Line: 24]
^
Just to make sure I wasn't doing something really stupid, I did.
Class foo = request.getClass();
And after stripping out the set...() functions and extra method
signature
junk
I saw only this list of methods.
getRequestURI()
getServletPath()
getPathInfo()
getPathTranslated()
getAttribute(java.lang.String )
getAttributeNames()
getQueryString()
getProtocol()
getServerName()
getServerPort()
getRemoteUser()
getRemoteAddr()
getRemoteHost()
getAuthType()
getHeader(java.lang.String)
getIntHeader(java.lang.String,int)
getIntHeader(java.lang.String)
getDateHeader(java.lang.String,long)
getDateHeader(java.lang.String)
getHeaderName(int)
getHeader(int)
getHeaderNames()
getRealPath(java.lang.String)
getInputStream()
getCharacterEncoding()
getScheme()
getCookies()
getSession()
getSession(boolean)
getRequestedSessionId()
isRequestedSessionIdFromCookie()
isRequestedSessionIdFromURL()
isRequestedSessionIdFromUrl()
isRequestedSessionIdValid()
I'm just assuming that the Sun specs are kind of pie-in-the-sky,
this-is-how-it-should-be guidelines.... either that or Weblogic is
doing
something funky with the request object? We're using JDK1.2.1_03.
There is an additional clarification to the message I posted. Tosee
those
two differences in getServerPort() and getHeader("host"), I hit the
two
urls:
http://wintermute:7080/headers.jsp
https://wintermute/headers.jsp
So, duh, of course i makes sense that the two methods returneddifferent
information. Once I replaced the https url with
https://wintermute:443/headers.jsp
I was left with identical information.
So now the only solution I can think of (kind of ugly, but not a
big
deal)
is that I "identify" secure connections on the production environment
by
having http URLs w/out a port, and then having the https URLs includethe
ssl
port. I think it will work consistently.... but I'd love to be able tohide
that :443....
Jack
Cameron Purdy wrote:
Have you tried request.isSecure()? That is what I would try first,
but
I
would give it 50/50 odds based on the information you have provided.
Cameron Purdy
"Jack Lin" <[email protected]> wrote in message
news:[email protected]...
ello,
I've looked around the newsgroups and on the support site for
similar threads but I haven't found any that have asked this
question
yet.
We have a weblogic 4.5 instance listening for requests on 8000via
the NSAPI plugin and Netscape Enterprise Server. NES is handingoff
all
requests for JSP pages to the WL plugin.NES's http port is 80, and
for
https, 443. In both cases, traffic gets directed to WL port 8000(in
raw
text). I've got all that under control.
The problem is that for some of the JSP's that are "secure",
we
want
to require that certain pages only be accessible via https. But I
haven't found a satisfactory way of doing that yet, because due to
the
NSAPI plugin everything comes to WL with URL's starting with"http"....
The best that I can come up with to detect differences between
whether a connection is secure is that a few request headers show
slightly different info. But I'm not sure if these differences are
consistent and reproducible, or just due to my development setup.
Note: My development setup is the same as described above
except
NES' http port is 7080.
request.getHeader("host"): HTTP: "wintermute:7080" HTTPS:
"wintermute"
request.getServerPort(): HTTP: "7080" HTTPS: "8000".
Everything else that I've queried for shows either identicalor
non-existent values, e.g.,
request.getScheme() : "http" (for both HTTP and HTTPS)
request.getAuthType() : "" <nothing>
The Sun J2EE spec says that HttpServletRequest also has an
"isSecure()" method but it doesn't exist on my setup...
Will these differences hold up consistently (I assume theNSAPI
plugin is rewriting some headers)? Is there a better way to dothis?
Any and all help is greatly appreciated.
Jack Lin

Similar Messages

  • Firefox is showing "Server not found" when Fedora 14 NetworkManger is detecting ppp connection through wireless broadband modem

    Hi,
    I am using Wireless broadband modem. Network manager is detecting the modem and successfully acquring an ip through ppp0. But Firefox is showing "Server not found". I have found that /etc/resolv.conf is updated properly. And ping or nslookup on some url like www.google.com is working from terminal. So it seems either firefox is not able to use DNS or ppp connection. I have also tried by disabling eth or lo. But of no use.

    See this thread: here.
    However, please don't use 192.168.0.2 for the router but 192.168.137.2 instead. Home sharing uses 192.168.137.1 on the sharing computer instead of 192.168.0.1 as it was in earlier Windows versions.
    To make the change, unplug the WRT from your network. Wire your second computer to a LAN port of the WRT.
    Open the web interface at http://192.168.1.1/
    On the main setup page, change the LAN IP address from 192.168.1.1 to 192.168.137.2.
    On the same page, disable the DHCP server.
    Save settings.
    Unplug the computer. Now wire one of the numbered LAN ports of the WRT to your home sharing computer.
    That's it.

  • Internal Server failure, NSAPI plugin

    Problem: I Get the following message after a HTTP POST
    Failure of WebLogic NSAPI plugin: Internal Server failure, NSAPI
    plugin. Cannot continue. Failure at line 369 of file proxy.cpp
    Environment: Weblogic 5.1.0. Service Pack 4 Netscape-Enterprise/3.6
    SP3
    The above problem appears if there is a post from a browser (only
    netscape)or from an application program. If I post using IE5 browswer
    then the post is successful.
    POSTING FROM A JAVA APPLICATION:
    I get the NSAPI plugin problem if I post the following string from
    my java application. I can reach the weblogic server directly and
    I can post the following string successfully.
    "POST /servlets/eol/EolPost HTTP/1.0" + "\n\n" + " Host: testpulpweb0.ecomtest.enron.com:5454
    " + "\r\n" + "Content-type: text/html" +"\r\n" + "Content-Length:
    " content.length() "\n" +content; *************************************************
    POSTING FROM BROWSERS
    I turned on both the Debug and DebugConfigInfo parameters. Following
    is the debug info I get in wlproxy.log after a successful post
    from IE5 ************************************************ Fri Mar
    16 10:25:32 2001 Sending header to WLS [referer]=[http://localhost/eolfo
    rm.htm] Fri Mar 16 10:25:32 2001 Sending header to WLS [accept-language]=[en-us]
    Fri Mar 16 10:25:32 2001 Sending header to WLS [content-type]=[text/plain]
    Fri Mar 16 10:25:32 2001 Sending header to WLS [accept-encoding]=[gzip,
    deflate] Fri Mar 16 10:25:32 2001 Sending header to WLS [user-agent]=[Mozilla/4.0
    (compat ible; MSIE 5.01; Windows NT 5.0)] Fri Mar 16 10:25:32 2001
    Sending header to WLS [host]=[testpulpweb0.ecomtest.enr on.com:5454]
    Fri Mar 16 10:25:32 2001 Sending header to WLS [content-length]=[7]
    Fri Mar 16 10:25:32 2001 Sending header to WLS [cookie]=[SITESERVER=ID=ebee2594a
    7d91523d4f83d5301864ed6] Fri Mar 16 10:25:32 2001 Sending header
    to WLS [X-WebLogic-Force-Cookie]=[true] Fri Mar 16 10:25:32 2001
    Sending header to WLS [Proxy-Client-IP]=[172.16.128.68] Fri Mar
    16 10:25:32 2001 Sending header to WLS [Proxy-Path-Translated]=[/opt/dyn
    amictrade21/cp_eol/servlets/eol/EolPost/ __WebLogicBridgeConfig]
    Fri Mar 16 10:25:32 2001 Sending header to WLS [Proxy-Path-Translated-Base]=[/op
    t/dynamictrade21/cp_eol] Fri Mar 16 10:25:32 2001 WLS info before
    parseHeaders : 127.0.0.1:8001 Fri Mar 16 10:25:32 2001 Header received
    from WLS : [HTTP/1.1 200 OK] = [] Fri Mar 16 10:25:32 2001 Header
    received from WLS : [Server] = [WebLogic 5.1.0 Service Pack 4 06/29/2000
    18:18:23 #74560] Fri Mar 16 10:25:32 2001 Header received from
    WLS : [Content-Type] = [text/html ] Fri Mar 16 10:25:32 2001 Header
    received from WLS : [Connection] = [Close] Fri Mar 16 10:25:32
    2001 Headers from WLS [Server]=[WebLogic 5.1.0 Service Pack 4 06/29/2000
    18:18:23 #74560] Fri Mar 16 10:25:32 2001 Headers from WLS [Content-Type]=[text/html]
    Fri Mar 16 10:25:32 2001 Headers from WLS [Connection]=[Close]
    Fri Mar 16 10:25:32 2001 request [servlets/eol/EolPost/__WebLogicBridgeConfig]
    processed .................. ***********************************************
    If I post using netscape then I get the "Internal Server failure,
    NSAPI plugin. Cannot continue." message
    Following is the message in wlproxy.log.
    Fri Mar 16 10:30:12 2001 ==================== New Request [servlets/eol/EolPost/__WebLogicBridgeConfig]
    ===================== **************************************************
    Maybe someone of you has an idea?
    Thanks in advance,
    Satish

    First of all, i would suggest you to try the latest WLS service pack and NSAPI plugin come with the service
    pack.
    Let us know if the problem re-appears.
    Kumar
    Satish Jonnavithula wrote:
    Problem: I Get the following message after a HTTP POST
    Failure of WebLogic NSAPI plugin: Internal Server failure, NSAPI
    plugin. Cannot continue. Failure at line 369 of file proxy.cpp
    Environment: Weblogic 5.1.0. Service Pack 4 Netscape-Enterprise/3.6
    SP3
    The above problem appears if there is a post from a browser (only
    netscape)or from an application program. If I post using IE5 browswer
    then the post is successful.
    POSTING FROM A JAVA APPLICATION:
    I get the NSAPI plugin problem if I post the following string from
    my java application. I can reach the weblogic server directly and
    I can post the following string successfully.
    "POST /servlets/eol/EolPost HTTP/1.0" + "\n\n" + " Host: testpulpweb0.ecomtest.enron.com:5454
    " + "\r\n" + "Content-type: text/html" +"\r\n" + "Content-Length:
    " content.length() "\n" +content; *************************************************
    POSTING FROM BROWSERS
    I turned on both the Debug and DebugConfigInfo parameters. Following
    is the debug info I get in wlproxy.log after a successful post
    from IE5 ************************************************ Fri Mar
    16 10:25:32 2001 Sending header to WLS [referer]=[http://localhost/eolfo
    rm.htm] Fri Mar 16 10:25:32 2001 Sending header to WLS [accept-language]=[en-us]
    Fri Mar 16 10:25:32 2001 Sending header to WLS [content-type]=[text/plain]
    Fri Mar 16 10:25:32 2001 Sending header to WLS [accept-encoding]=[gzip,
    deflate] Fri Mar 16 10:25:32 2001 Sending header to WLS [user-agent]=[Mozilla/4.0
    (compat ible; MSIE 5.01; Windows NT 5.0)] Fri Mar 16 10:25:32 2001
    Sending header to WLS [host]=[testpulpweb0.ecomtest.enr on.com:5454]
    Fri Mar 16 10:25:32 2001 Sending header to WLS [content-length]=[7]
    Fri Mar 16 10:25:32 2001 Sending header to WLS [cookie]=[SITESERVER=ID=ebee2594a
    7d91523d4f83d5301864ed6] Fri Mar 16 10:25:32 2001 Sending header
    to WLS [X-WebLogic-Force-Cookie]=[true] Fri Mar 16 10:25:32 2001
    Sending header to WLS [Proxy-Client-IP]=[172.16.128.68] Fri Mar
    16 10:25:32 2001 Sending header to WLS [Proxy-Path-Translated]=[/opt/dyn
    amictrade21/cp_eol/servlets/eol/EolPost/ __WebLogicBridgeConfig]
    Fri Mar 16 10:25:32 2001 Sending header to WLS [Proxy-Path-Translated-Base]=[/op
    t/dynamictrade21/cp_eol] Fri Mar 16 10:25:32 2001 WLS info before
    parseHeaders : 127.0.0.1:8001 Fri Mar 16 10:25:32 2001 Header received
    from WLS : [HTTP/1.1 200 OK] = [] Fri Mar 16 10:25:32 2001 Header
    received from WLS : [Server] = [WebLogic 5.1.0 Service Pack 4 06/29/2000
    18:18:23 #74560] Fri Mar 16 10:25:32 2001 Header received from
    WLS : [Content-Type] = [text/html ] Fri Mar 16 10:25:32 2001 Header
    received from WLS : [Connection] = [Close] Fri Mar 16 10:25:32
    2001 Headers from WLS [Server]=[WebLogic 5.1.0 Service Pack 4 06/29/2000
    18:18:23 #74560] Fri Mar 16 10:25:32 2001 Headers from WLS [Content-Type]=[text/html]
    Fri Mar 16 10:25:32 2001 Headers from WLS [Connection]=[Close]
    Fri Mar 16 10:25:32 2001 request [servlets/eol/EolPost/__WebLogicBridgeConfig]
    processed .................. ***********************************************
    If I post using netscape then I get the "Internal Server failure,
    NSAPI plugin. Cannot continue." message
    Following is the message in wlproxy.log.
    Fri Mar 16 10:30:12 2001 ==================== New Request [servlets/eol/EolPost/__WebLogicBridgeConfig]
    ===================== **************************************************
    Maybe someone of you has an idea?
    Thanks in advance,
    Satish

  • Photo Downloader does not detect Thunderbolt connection. Help!

    I am using Bridge CS5.1 on MacBook OSX 10.8.3. I bought a Seagate Thunderbolt Adapter which works with 2.5" eSATA hard drives (Seagate Backup Plus). Instead of connecting a 2.5" eSATA to this Thunderbolt Adapter to my Mac, I am doubling this thunderbolt connection as a CF card reader by swapping the eSATA portable drive with a CF to eSATA Adapter instead. Photo Downloader does not detect anything connected through thunderbolt!?
    When the CF card or portable drive is connected via the TB adapter, it appears in Bridge and Finder. The Canon's Image Browser (Memory Card Utility) detects only the CF card (not the portable drive) as a Camera and downloads the images from the CF card via the thunderbolt adapter with no issues. I would prefer Bridge to download the images due how the folder names are created by Bridge. (I have been using Bridge for few years now and dont want to change the naming convention. Can't seem to find a way for Canon to name it exactly the same as Bridge. It does YYYY_MM_DD amd I cant get rid of the underscores in Canon's software)
    How can I get Photo Downloader (File: Get Photos from Camera...) on Bridge CS5.1 to detect the Thunderbolt connection as a Camera?
    Excuse my messy desk, here's a pic of the set up with the CF card plugged into the CF to eSATA adapter : and onto the Seagate TB Adapter. and the TB cable goes into the Mac

    It works perfectly well. My issue is getting Adobe Bridge 5.1 to recognise the CF card via thunderbolt in photo downloader.
    Despite having bought a MacPro just a few months ago I still have no Thunderbolt connection so i can't confirm this.
    I do know Photodownloader has not changed a bit since it was presented long time ago and definitively needs a lot of improvement.
    It is very possible that Photodownloader is not capable detecting thunderbolt connections and Canon software doing so does almost proof APDL does not do so.
    You can try to dive in the user library (by default hidden, use menu Go and press option to reveal it) and in the folder preferences find and delete the Photodownloader plist file manual.
    restart photodownloader and try again.
    The other option is to use a USB 3.0 or Firewire (both also pretty fast).
    The third option is to use Bridge itself for renaming the files you imported manual. Using the sort order creation date and batch rename use the option for shot date (yymmdd-number or other info) and either organize with stacks or create folders.
    There is also a nice app (not free but cheap called 'big mean folder machine" from the same team that offers 'A better finder rename'.
    Both offer plenty of options that makes life easier, such as producing folders with specific naming and order in no time

  • Webdynpro ABAP/Portal. Plugin HTTP connection issue on WaitingEventQueue.js

    Hello,
    We are experiencing a strange Portal Behavior with our Webdynpros. Our portal contains several iViews including some Webdynpro (ABAP) and some reporting transaction calls that use SAPgui for HTML.
    When portal is called for the first time and a user logs in, two connections of type RFC can be seen for that user in SM04 in our ERP system. All iViews work as expected. For example, calling the Time Management webdynpro closes one of the RFC connections and starts a new Pluguin HTTP connection. We can go back and forth between the welcome page and this Webdynpro with no issues.
    If we then select one of the reporting transaction codes, the portal launches the SAPGUI for HTML. Report retrieves and shows data, and then we close using the "Exit" button provided by the sapgui for HTML
    Next we try again to launch any webdynpro (abap), but SM04 shows that the new Plugin HTTP session gets stuck and spinning mid way, and will stay there. Refreshing the Portal screen with F8, navigating back and forth, logging off and on again has no effect. The webdynpros will not launch again. Only webdynpros are affected, any of the reporting transactions can be called successfully over and over.
    We have figured that deleting Temporary Internet files (we are using IE 7), and in particular by just deleting the WaitingEventQueue.js?XXXXXXXXXXX file, the system will break away from the spin loop and show the webdynpro again, but eventually it will get stuck again, and asking the users to delete their Temporary Internet Files every 5 minutes is not a workable solution
    I have reviewed the contents of this javascript file at different points during the test, and the contents do not change, so deleting the file and the recreate process must be resetting somehow the queue and allowing for a new correct communication.
    Is there a way to properly reset this event queue (for example from ABAP, when the webdynpros are reloaded) in order to avoid the spin loop?
    Thanks for any help!
    Andres

    Well, we got the issue resolved, so here is what we did, in case anybody is interested:
    Tested again our portal with multiple versions of Internet Explorer, in particular IE8 and IE6, the Webdynpro behavior was normal (no timeouts or locks). It even worked when we installed IE7 in a brand new machine and tried our portal.
    So we started suspecting if maybe the particular IE7 that we install internally (with specific settings and policies) may be the culprit. We took a desktop that was producing the timeouts and used the following options in IE7:
    Tools->Internet Options->Advanced(tab)-Reset Internet Explorer settings
    and, voila! the next time we ran there, the portal did not create any timeouts.
    We even asked our desktop support team to uninstall and reinstall IE7 in the same machine after we did the reset, and even after the re-install that the timeout problems did not re-appear.
    One of the things that the "reset" option does is delete the Add-ons used by IE.
    So as a last test, we took a machine that was presenting the problem and went to the Internet Options to disable all the add-ons (in the Programs Tab). The error disappeared.
    And even after enabling back all the add-ons, the error would not return.
    Conclusion:
    Without being able to pinpoint the specific add-on (or combination) that causes the problem, we suspect that some of them conflicted, causing IE7 to behave abnormally. Disabling them all, restarting Internet Explorer, and enabling them again, makes the WaitingEventQueue.js work as it should

  • Plugin opens too many Http connections

    Hi Java gurus,
    My applet sends many POST requests (10-20 per second) one by one (not concurrently) to an IIS server application, using HttpUrlConnection. When I run it with AppletViewer, I see (with netstat) a single HTTP connection which is re-used for each new POST.
    However, when I run it under IE with Plugin 1.4.0 or 1.4.1, netstat shows that each POST creates a new connection. After the response arrives, this connection goes to TIME_WAIT state for several minutes and the next POST opens a brand new connection. After some time I see hundreds of TIME_WAIT connections.
    I got an advice (from experts-exchange) to force using sun.net rather than sun.plugin, thus avoiding the apparent plugin bug. I do it as follows:
    URL.setURLStreamHandlerFactory(null);
    sysProperties.setProperty("java.protocol.handler.pkgs", "sun.net.www.protocol");
    Now a single connection is opened and re-used for all POSTs, but the applet is not aware that it runs under a plugin or browser, e.g., it doesn't recognize the IE proxy settings.
    My questions:
    1. Is this a known plugin bug? (I could not find any similar bug in Web).
    2. Are there other potential problem with my workaround?
    3. Are there other solutions to my problem?
    Thanks in advance
    Sruli Ganor

    I am facing the same problem...

  • SFTP, FTP, HTTP Connection Refused through clients

    I have an off-site storage server that I've been using for a while. All of a sudden the past couple of weeks while trying to connect through Transmit or Cyberduck all I get is "connection refused" whenever I attempt to connect through SFTP, FTP, or HTTP. The IT guys for the server state it's fine but when I try to ping my ports on my mac my port 22 and 21 aren't visible.
    What in the heck is going on?

    Here is the log output for:
    ssh -v -v -v [email protected]
    What does ssh_connect: needpriv 0 mean?
    Brens-Mac-Pro:~ xxxx$ ssh -v -v -v [email protected]
    OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
    debug1: Reading configuration data /etc/ssh_config
    debug1: Applying options for *
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to [email protected] [188.xxx.237.xx] port 22.
    debug1: connect to address 188.xxx.237.xx port 22: Connection refused
    ssh: connect to host [email protected] port 22: Connection refused

  • I am able to connect to the internet using internet explorer, but when I try to connect through mozilla firefox it says 'it is unable to establish a connection to the server." why?

    I can establish internet connection through internet explorer using a router at my house, but whenever I attempt to connect using firefox, it says it is unable to connect.

    A possible cause is security software (firewall) that blocks or restricts Firefox without informing you about that, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process.
    See [[Server not found]] and [[Firewalls]] and http://kb.mozillazine.org/Firewalls

  • How can i airplay from my mac connected through ethernet to an aple tv 2 on wifi

    Hi everyone..
    im having troubles using Airplay on my mac.. i connect my mac to the internet and home network using an ethernet connection to my router (non apple branded router) .. my apple tv 2  is connected to my home wifi network from the same router.. when i first set up my apple tv.. i was able to see the Airplay icon on itunes and it would let me Airplay media from my mac to my apple tv.. however.. it disconnects after a little while.. same thing with viewing my itunes library from apple tv.. i was able to detect my shared library from the apple tv.. i was able to play some media but then it disconnected after some time.. but now.. the Airplay icon doesnt show up in itunes anymore.. and i cant see my shared library from my apple tv neither.. ive looked around for a solution and followed the tip to turn the ipv6 off.. it worked for some time but now the problem is back..
    i know the obvious solution is to connect my mac to the same wireless network as my apple tv.. but i would like to keep it connected through ethernet..
    Mac OS X Lion 10.7.4
    Apple TV 2 software version 4.4.4
    Thanks in advance

    thisguy. wrote:
    ......i know the obvious solution is to connect my mac to the same wireless network as my apple tv.. but i would like to keep it connected through ethernet.........
    I wouldn't say that was the obvious answer at all, my Mac is connected by ethernet and 6 of my 7 Apple TV's are connected by wifi, I haven't had any of your problems. The problem is most likely on your network.
    Intermittent problems
    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
    There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first. Networks that have inherent issues can be seen to work differently with different versions of the same software. You might also try moving the Apple TV away from other electrical equipment.
    Consistent Problems
    A frequent cause of consistent failure to enable AirPlay or HomeSharing at all, is the service being blocked on the network. Make sure your network isn't hidden, has a unique name, that MAC address authentication is disabled, security is set to use WPA 2 Personal and that there is only one router/device acting as a DHCP server and providing NAT services.
    Make sure your router/computer allows access over the following ports
    Port
    Type
    Protocol
    Used By
    80
    TCP
    HTTP
    AirPlay
    443
    TCP
    HTTPS
    AirPlay
    554
    TCP/UDP
    RTSP
    AirPlay
    3689
    TCP
    DAAP
    iTunes/AirPlay
    5297
    TCP
    Bonjour
    5289
    TCP/UDP
    Bonjour
    5353
    TCP/UDP
    MDNS
    Bonjour/AirPlay
    49159
    UDP
    MDNS (Win)
    Bonjour/AirPlay
    49163
    UDP
    MDNS (Win)
    Bonjour/AirPlay
    Refer to your router manual/manufacturer for any settings that are specific to that model.
    Another frequent cause of consistent failure to enable AirPlay or HomeSharing at all, is security software, in many cases configuring it correctly, disabling it or even uninstalling it can help, but in some cases the security software can cause problems that simply reconfiguring, disabling or uninstalling cannot reverse.
    If you are consistently unable to activate AirPlay, have tried all the steps in this article and have security software installed on your system, you might benefit from contacting its provider or participating in any online forums they run to discuss the matter with them.

  • Getting Creative Zen player to connect through amarok [SOLVED]

    Edited 12-27 to include new info
    I'm trying to get myCreative Zen player to connect through amarok but am having some problems. After some looking around I figured out the libmtp in the extra repository doesn't support this player, but the newest versions do. I made a new package for libmtp-0.2.4 and installed it since there's been some tweaks that affect this player since 0.2.2 which is in testing. I also had to recompile amarok since one of libs changed a name with the new libmtp. The instructions from libmtp mentioned udev rules needed to be defined, which was done by copying a file from the source code into /etc/udev/rules.d. That file (minus the parts relating to other players, which is pretty much the same as here):
    # UDEV-style hotplug map for libmtp
    # Put this file in /etc/udev/rules.d
    ACTION!="add", GOTO="libmtp_rules_end"
    ATTR{dev}!="?*", GOTO="libmtp_rules_end"
    SUBSYSTEM=="usb", GOTO="libmtp_usb_rules"
    # The following thing will be deprecated when older kernels are phased out.
    SUBSYSTEM=="usb_device", GOTO="libmtp_usb_device_rules"
    GOTO="libmtp_rules_end"
    LABEL="libmtp_usb_rules"
    # Creative ZEN 8GB
    ATTR{idVendor}=="041e", ATTR{idProduct}=="4157", SYMLINK+="libmtp-%k", MODE="666"
    GOTO="libmtp_rules_end"
    LABEL="libmtp_usb_device_rules"
    # Creative ZEN 8GB
    ATTRS{idVendor}=="041e", ATTRS{idProduct}=="4157", SYMLINK+="libmtp-%k", MODE="666"
    GOTO="libmtp_rules_end"
    LABEL="libmtp_rules_end"
    When I plug the player to my usb port dmesg gives
    usb 5-1: new high speed USB device using ehci_hcd and address 8
    usb 5-1: configuration #1 chosen from 1 choice
    As my normal user amarok doesn't seem to recognize anything, and mtp-detect gives:
    libmtp version: 0.2.4
    Attempting to connect device(s)
    usb_claim_interface(): Operation not permitted
    LIBMTP PANIC: Unable to initialize device 1
    LIBMTP PANIC: configure_usb_devices() error code: 7 on line 1561
    Detect: There has been an error connecting. Exiting
    As root mtp-detect gives me a bunch of output that seems like it's doing what it should, also while it's spitting this out the screen on the player changes to say it's docked, which wasn't happening as the normal user. This makes me think it's some permissions issue. I did find things from google telling me that sometimes the user needs to be added to a certain group to use libmtp, though it seemed somewhat distro dependent. My main user is in the following groups: dbus hal network audio optical storage scanner camera users thinkpad
    However I don't think my problems are solely permission related, since even as root amarok won't recognize the player. I can use gnomad2 as root, which mostly works, though it crashes when I try and close gnomad after adding music and the player thinks it's still docked even after unplugging it. I had to use a pin to reset it just to turn it off. When I ran it from a console I got the following output at the end after the crash
    PTP: Closing session
    ERROR: Could not close session!
    inep: usb_get_endpoint_status(): Protocol error
    outep: usb_get_endpoint_status(): No such device
    usb_clear_halt() on IN endpoint: No such device
    usb_clear_halt() on OUT endpoint: No such device
    usb_clear_halt() on INTERRUPT endpoint: No such device
    The application 'gnomad2' lost its connection to the display :0.0;
    most likely the X server was shut down or you killed/destroyed
    the application.
    Any suggestions for where to go from here?
    Last edited by mcmillan (2008-01-11 05:38:14)

    I tried uploading onto my school website, but it doesn't seem accessable from there. However I just modified the version number from the regular Pkgbuild file from abs. What I have is:
    # $Id: PKGBUILD,v 1.8 2007/05/20 19:11:05 travis Exp $
    # Maintainer: damir <[email protected]>
    #Contributor: Kevin Edmonds <[email protected]>
    pkgname=libmtp
    pkgver=0.2.4
    pkgrel=1
    pkgdesc="library implementation of the Media Transfer Protocol"
    arch=("i686" "x86_64")
    url="http://libmtp.sourceforge.net"
    license=("LGPL")
    depends=("libusb")
    source=(http://easynews.dl.sourceforge.net/sourceforge/libmtp/$pkgname-$pkgver.tar.gz)
    options=('!libtool')
    #md5sums=('597b62d994d9491531b9e67190f6cfe7')
    build() {
    cd $startdir/src/$pkgname-$pkgver
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR=$startdir/pkg install
    If you still have trouble building it let me know some other way than that I can send you the package.
    I've been meaning to post an update about my issues. I've figured out that when I connect the player it creates device nodes with the root group.  Some have permissions set to 666, which seems to fit with the udev rules I posted. But some of them are only rw for owner and group, others only have read permissions. As a test I tried changing the permissions by hand to 666, and I can use gnomad as my regular user, though it's buggy and seems to crash randomly (not just when I transfer files like I originally thought). I haven't been able to test what amarok does, since for some reason it stopped working this weekend and I haven't had a chance to figure out what happened. It seems there some problem with the udev rules, but I don't know much about how that works to figure out what's going wrong.

  • Can't detect Network Connection?

    I'm using a wireless connection at the library, and as long as I connect through Firefox it works fine (Safari gets picky about it), but I have trouble with both Mail and iChat AV. Neither can detect the connection at all. I ran connection doctor, and it just told me I have no network connection. I pinged the servers through Network Utility and it worked perfectly.
    Any tips or tricks to get this running? Did Bill screw up our wireless? Do Linksys WAP54G not work with Mail and iChat?
    At least my browsers work, but it would be nice to use some other programs...

    Hi Emi,
    You would like to thinks so.
    Go to System Preferences.
    Then Network.
    Choose the connection method from the second drop down.
    Choose the TCP/IP tab
    Does this read "Using DHCP" ?
    What is the IP below that for your computer ?
    Further down what is the "router" IP ?
    Also make and model is your modem ?
    If the Linksys is the "router" as shown in the IP above then it should be shown as 192.168.1.254
    If you see this IP type it into a web browser.
    (just the Numbers not www or http bits)
    After you hit enter you should get a pop up asking for User ID and password. If the WAP54G is still in default settings then these should both be admin in lower case.
    Can you tell us what the connection method says at the top of the Setup page please ?
    4:05 PM Saturday; December 16, 2006

  • Can't connect to HTTPS connections in all browsers suddenly

    Here's the issue, I suddenly noticed I cant connect in an HTTPS connection, they all have a line thru them, so while I am logged in here, the https has a red line through it. The only thing I've installed is Calibre and some plugins to go with my Kindle DX. What are my option to fix?

    can't not connect to https connections in all browsers suddenly..
    me too..
    Surprise surprise.

  • Server closing the http connection

    We are trying to load test our app which takes an xml message thru
              http request. The request to our app is redirected from CSS (Cisco
              content services switch) load balancer. Our app is running in a
              clustered environment with 2 servers.
              When we tried to post 100 simultaneous messages (in turn 100 http
              requests) originating from the same java client program running on
              only one machine, we get an excception "Connection reset by peer:
              JVM_recv
              Socket write error".
              All these 100 requests are simultaneous and like that we ran the tests
              4 consecutive times without any delay.
              When we ran the tests thru the weblogic proxy server (the one that
              uses HttpClusterServlet) we did not face any connection issues like
              this.
              I'm wondering if this is a load-balancer problem or a weblogic
              problem.
              

    We're doing all the url connections thru our java program which
              creates 100 simultaneous threads which in turn becomes 100
              simultaneous posts. Someone is also suggesting that there is a time
              limit that CSS has before it received the content frame from the
              client once it opens the http connection. I'm not sure if that is
              true.
              "Vyas" <[email protected]> wrote in message news:<[email protected]>...
              > Cisco load balancer sets its own cookie to redirect traffic to the same server, this
              > cookie somehow seems to interfere with weblogic session cookie.
              > We had problems because of this in a production environment with
              > users interfering with each other's session.
              >
              > So far neither weblogic nor cisco owned up to anything , however weblogic gave us
              > a patch admitting to some problems with parsing cookies when other cookies are involved.
              >
              > I am not sure if the problems are the same for you,
              > what do you mean 100 simultaneous requests ?
              > through browser ? through httpurlconnection ?
              >
              > [email protected] (marsaroid) wrote:
              > >We are trying to load test our app which takes an xml message thru
              > >http request. The request to our app is redirected from CSS (Cisco
              > >content services switch) load balancer. Our app is running in a
              > >clustered environment with 2 servers.
              > >
              > >When we tried to post 100 simultaneous messages (in turn 100 http
              > >requests) originating from the same java client program running on
              > >only one machine, we get an excception "Connection reset by peer:
              > >JVM_recv
              > >Socket write error".
              > >
              > >All these 100 requests are simultaneous and like that we ran the tests
              > >4 consecutive times without any delay.
              > >
              > >When we ran the tests thru the weblogic proxy server (the one that
              > >uses HttpClusterServlet) we did not face any connection issues like
              > >this.
              > >
              > >I'm wondering if this is a load-balancer problem or a weblogic
              > >problem.
              

  • Help I purchase an Ipad yesterday I amusing internet connection through a netgear wired to my home computor since yesterday I am unable to open my emails or access my bank account ps I am not technical I am with orange broad band and have followed their i

    Help I purchased an ipad yesterday I am using internet connection through a wired up netgear router through my pc.Since then I cannot open my hotmail emails or access my online banking on wired pc and the navigator on ipad not working.
    I would appreciate help I followed all directions that Orange provided with netgear router

    Something here may help
    http://www.apple.com/uk/support/ipad/contact/
    pick a subject from left hand panel
    and this
    http://manuals.info.apple.com/en_US/ipad_user_guide.pdf

  • How do i use an alredy open HTTP connection belong to aother class

    When my apps logs in the User by checking that the username and password are correct against the server then there has been a connection opened to perform this task.
    Then the user is returned to the Main Menu.
    After that they can send some data to the server.
    Class 1 handles the sending of Username and Password.
    And has already opened a HTTP connection.
    Class 2 that will send more data to the server will need to open a connection if there is not one already open.
    How do i check if there is an open connection?
    Do i need to check?
    Can both classes use the same connection? As its to the same server and same php script.
    Thanks for you help on this (once again :-/ )
    Brian

    endPointURL = "http://www.druidev.com/php/verification_script.php";
    try
                        c = (HttpConnection)Connector.open(endPointURL);
                        c.setRequestMethod(HttpConnection.POST);
                        c.setRequestProperty("IF-Modified-Since", "20 Jan 2001 16:19:14 GMT");
                        c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Configuration/CLDC-1.0");
                        c.setRequestProperty("Content-Language", "en-CA");
                              c.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
                        os = c.openOutputStream();
                   String name = "string=name=";
                   String password_tmp = "#password=";
                   String end ="#";
                   String num_origin ="#num_origin=";
                   String num_destination= "#num_destination=";
                   String t1 = name.concat(Start.current_Username);                                                                  String t2 = password_tmp.concat(Start.current_Password);
                   String t3 = t1.concat(t2);     
                   String t4 = t3.concat(num_origin);
                   String t5 = t4.concat(phoneNum1);     
                   String t6 = t5.concat(num_destination);
                   String t7 = t6.concat(phoneNum2);
                   String Final_str = t7.concat(end);                              
                        byte postmsg[] = Final_str.getBytes();
                        for(int i=0;i<postmsg.length;i++)
                               os.write(postmsg);
              is = c.openDataInputStream();
              int ch;
              while ((ch = is.read()) != -1)
              b.append((char) ch);
    I am not using flush etc.
    I need to update a phone book that is downloaded to the phone(MIDlet) once the User is verified.
    The user can edit the phonebook on the phone then each change needs to be sent back to the php script on the server.
    Can i have a loop for the number of updates i need to do then just loop through the code?
    Or will i need to repeat the whole above operation for every update i need to make.
    E.g. 5 edits?

Maybe you are looking for

  • Share and Synch Calendar across multiple accounts on the same computer?

    The subject says it all. ICAL on same Mac but all 4 users want to share and update the calendar (s) (Multiple calendars) How can this be done. Basically I want to replace the beaten up ole torn paper calendar in teh kitchen that we all write on and s

  • Enabling scalable fonts on Solaris 9

    Hello, We have Solaris 9 machine. On this X Sun is the X server. I want to enable -xft -xrender �xrandr option in Qt to get scalable fonts. When I configure Qt with these options I am getting below error message from configure script. NIS auto-detect

  • Nokia 6233 - PC Suite 6.82.22.0 not finding Toshib...

    Boxed PC suite working fine but if I install PC S. 6.82.22.0. (PC Suite 682 rel 22 0 eng us web.msi)then I get a message to ask for reinstallation. I looked at the Error and it refers to: (Code: Init IMediaControl2). I then looked at the Bluetooth se

  • Windows 7 failing to boot after RAM upgrade

    Hi all, I don't think I'm being dense here, have looked through the forums and not found a similar problem! So I'm now worried there's something wrong with my iMac (21.5" late 2009 dual core Radeon 4670 1TB) - so thanks in advance for your thoughts..

  • How do I export/save (iOS numbers)only 1 sheet to pdf??

    How do I export/save (iOS numbers)only 1 sheet to pdf?? Everytime i tried it ,,,every pages/sheet lays in the pdf-file..