Remote access from within a browser

Hi!
I'm relatively new to programming (currently studying) and a friend of mine asked me for help. His father is developping a new technology and gave me some spec. He offered me to help him (he doesn't like to code. He prefers designing microcontrollers).
My problem is that I have to do a user interface to configure his controllers that will be VERY friendly (my grandmother should be able to use it...) and he hopes it to be in a web browser. Somewhat like when you want to configure a router via 192.168.1.1.
I first thought about applets, but security prevents them access to filesystem, COM ports and Internet connection from other than the host.
Maybe Java isn't the best solution, but I know very few other things (and even then, I know not everything about Java).
I don't want a complete solution (where would I learn then?!?) but I'd appreciate if someone could point me the right direction.
It have to be in a Web Browser (IE or Netscape), to access a DB for user permissions (kind of door monitoring), be able to configure hardware via Ethernet port or COM port if Ethernet isn't present.
Thanks to those who will suggest something!

My problem is that I have to do a user interface to
configure his controllers Are the contollers attached (via COM ports) to the same computer?
You can always configure controllers from the same machine they are attached to by writing a simple Java application that 'talks' to the controllers via COM ports without any security issues.
If you need to access this configuration utility from other computers, then you'd better use an internet browser as a client. Some program must be running on the machine the controllers are attached to. If you don't have firewall/proxies situation, you can write in Java a very simple server program (check a tutorial on Socket programming). This program will simply listen on a port waiting for configuration instructions from the client (an applet) and then send appropriate commands to controllers and receive feedback via COM ports then send this feedback back to the client. This computer must also run a web server (e.g. Apache) that will serve the applet. The applet will establish a socket connection with your little Java server program and starts communication with it by sending configuration commands and receiving feedback.
As Sscotties mentioned you can use JSPs and/or Servlets which will be perhaps a better solution. In this case you have to run your Web application server (e.g. Tomcat) on the machine the controllers are attached to.
If the controllers have an Internet access and there is a little memory left for an embedded web server, then it would be possible to directly access what you need (like a router via 192.198.1.1).
You can also use Hyperterminal to access the controllers via COM ports from a PC (maybe it's already done). In this case you will have to add to the controller COM port listener thread's code some lines to generate an appropriate feedback. With certain effort it should be possible to write it the way your grandmother will be able to use.
This is certainly not all options you can use.

Similar Messages

  • Error calling remote oc4j from within oc4j

    I'm running a session bean inside one instance of oc4j, and trying to make a remote rmi call to another oc4j instance, but running into a problem.
    When both the "client" side oc4j and server side oc4j are 10.1.3.0.0, everything proceeds smoothly. When the "client" side oc4j is upgraded to 10.1.3.3.0, I get the following error when doing the lookup:
    'TestBean' remote object not found during name lookup
    Caused by: javax.naming.NamingException: Disconnected: oracle.classloader.util.AnnotatedClassNotFoundException:
    Missing class: oracle.oc4j.rmi.interceptors.PropagatedIdentity
    Dependent class: com.evermind.io.ClassLoaderObjectInputStream
    Loader: oc4j:10.1.3
    Code-Source: /C:/java/oc4j/j2ee/home/lib/oc4j-internal.jar
    Configuration: <code-source> in META-INF/boot.xml in C:\java\oc4j\j2ee\home\oc4j.jar
    This load was initiated at testbean.root:0.0.0 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.
    at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:64)
    Poking around, I found that the 10.1.3 oc4j doesn't contain any "PropagatedIdentity" class, but 10.1.3.3 does contain that class in the oc4j-internal.jar.
    Has anybody been seen this error or know what causes it? I assume that it should be possible to make a remote call from within one oc4j to another oc4j running a different version, but perhaps there's a conflict with the client classloading that prevents this.
    Any input is appreciated.
    Thanks,
    -- Dave

    Hi Stephen,
    Using a registry, for example UDDI [1], would be one solution. WLS has
    a complete UDDI implementation builtin [2] for this purpose.
    You are correct, you need to pass the service address location found in
    the <service> section of the WSDL.
    Hope this helps,
    Bruce
    [1]
    http://www.uddi.org/
    [2]
    http://e-docs.bea.com/wls/docs81/webserv/uddi.html
    Stephen Kurlow wrote:
    >
    I am not sure what I need to do to be able to call a remote webservice (runs on
    another weblogic server instance running on another machine in the same network)
    from within a webservice. I have 2 wsdl files and I have created webservice controls
    from them. I have successfully written code in the first webservice to instantiate
    the parms to the 2nd webservice and invoked the 2nd webservice when both webservices
    are deployed to the same weblogic server instance. So i can see the params being
    marshalled and unmarshalled in the test browser.
    Now how do I install the 2nd webservice on another weblogic server instance and
    instruct the 1st web service to call the 2nd webservice residing on another weblogic
    server instance? I presume some kind of lookup (url?) is needed and is it via
    what is contained in the wsdl file?
    Thanks in advance,
    Stephen Kurlow

  • I want to take remote access from an iTunes library off of my iPad ...when I hit edit from the remote app it pulls that library up ..if I delete it I just want to make sure that I'm not remotely wiping out the library, just access to it from my iPad ?

    I want to take remote access from an iTunes library off of my iPad ...when I hit edit from the remote app it pulls that library up ..if I delete it I just want to make sure that I'm not remotely wiping out the library, just access to it from my iPad ?

    Call the apple store you got it from and ask them. Sometimes in the past they've extended the 'no questions asked return' but only Apple can tell you for sure.

  • I have a mac mini server which I want to set up for remote access from windows and mac pcs.  How do I do this.  I can access it form my home network OK

    I have a mac mini server which I want to set up for remote access from windows and mac pcs.  How do I do this.  I can access it form my home network OK

    Posted in error.

  • Preventing Copy & Paste from Within A Browser

    I created a pdf from a WORD document.  I then opened the PDF and went to ADVANCED>>SECURITY.  I applied sucurity principles that would not allow copy and paste as well as printing and I locked it with a password (the document can be opened without a password).
    If I try to copy and paste text with the PDF opened in Windows on my desktop, I cannot copy and paste text.  However when viewing the same document within a browser (Firefox), I am easily able to  copy and paste text and print.  Is there a way to prevent copy and printing from within a browser?
    Thanks!

    PDF viewers that are compliant to the standard will not allow this. The problem is some PDF viewers are less than compliant, such as some that are built-in to browsers. It looks like Firefox's does not respect security settings.

  • Why can't Firefox still not show a pdf properly from within the browser and do we need insufficient and not working add-ons?

    I never succeeded to show a pdf properly in the Firefox browser.
    There is an add-on, but the add-on itself tells you already in most cases that you should download the pdf because it can't show the pdf properly. I can't understand why that is! It makes my live much more complicated, since we have an application running that constantly should be able to show pdf's from within the browser.

    The add-on you are talking about is pdf.js. pdf.js does it best to show you what the pdf's it is given are, but pdf.js is not 100% compatible with all elements that can be put inside a pdf. Another problem pdf.js faces is that many pdf's generated with proprietary software either do not conform to the pdf spec or use proprieatary elements that only pdf readers that the company has designed or partnered with can interpret. I promise you Mozilla doesn't want your life to be any more complicated than it is but sometimes it is simply not possible for pdf.js to read a document when the manufacturer of the program that generated the pdf doesn't play by the rules.

  • "Show Cover Page during Two-Up" from within a browser window?

    I frequently use the "Show Cover Page during Two-Up" option (from View menu->Page Display in Acrobat Pro 8.1).
    Is there a way to do this from Acrobat Reader within a browser window? I often find myself having to save a PDF to my desktop only to open it in the standalone version of Acrobat because I don't have any access to the View menu while in Adobe Reader within a browser.
    thanks in advance
    Marty

    This is not a feature request, but a query on how Acrobat works. Please repost in the Acrobat forum.

  • Remote access using a web browser

    Does anyone know how secure your system is accessing labview remotely.
    Whenever you're accessing Labview(port 80) from a remote location
    through a web browser there is nothing stopping a hacker from gaining
    access to your system.
    Is there anyway to prevent outside access to the sytem?

    Casey wrote:
    > Does anyone know how secure your system is accessing labview remotely.
    > Whenever you're accessing Labview(port 80) from a remote location
    > through a web browser there is nothing stopping a hacker from gaining
    > access to your system.
    >
    > Is there anyway to prevent outside access to the sytem?
    Well, if you prevent outside access you automatically prevent access
    altogether so you won't be able to use a browser to connect to it. If a
    browser can connect anyone with some TCP/IP knowledge can connect too.
    If you want to disable that possibility you also disable access by browsers.
    However the WebServer in LabVIEW is fairly secure and it is quite
    unlikely that you can abuse it to gain access to your machine. The
    biggest risk would be a DOS attack which in older versions of LabVIEW
    were possible at some time.
    You have some options. If you only need access to the WebServer from
    your Intranet, simply don't allow routing from outside traffic to your
    LabVIEW computer at all. You configure this in your firewall.
    I assume you have a firewall, (not the playtoy included in Windows XP
    but a real one) because if you haven't you have a lot more and bigger
    problems to worry before you even think about a possible vulnerability
    in the LabVIEW WebServer.
    If you do need to have outside access to your LabVIEW WebServer you can
    configure the firewall to only allow outside access to port 80 on your
    LabVIEW computers IP address. And if that seems still scary to you the
    better approach is to use a real WebServer such as Apache and do
    everything there. Don't forget the firewall though. Eventhough Apache
    may have some security problems every now and then, they are usually
    discovered fast and fixed even faster. So if you monitor the situation
    and react on known vulneribilities you can have a very secure system.
    LabVIEW vulneribilities are often not found as fast because a lot less
    people use it and even fewer try to actually seek out such systems and
    attack them on purpose.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Calling a remote webservice from within a webservice

    I am not sure what I need to do to be able to call a remote webservice (runs on
    another weblogic server instance running on another machine in the same network)
    from within a webservice. I have 2 wsdl files and I have created webservice controls
    from them. I have successfully written code in the first webservice to instantiate
    the parms to the 2nd webservice and invoked the 2nd webservice when both webservices
    are deployed to the same weblogic server instance. So i can see the params being
    marshalled and unmarshalled in the test browser.
    Now how do I install the 2nd webservice on another weblogic server instance and
    instruct the 1st web service to call the 2nd webservice residing on another weblogic
    server instance? I presume some kind of lookup (url?) is needed and is it via
    what is contained in the wsdl file?
    Thanks in advance,
    Stephen Kurlow

    Hi Stephen,
    Using a registry, for example UDDI [1], would be one solution. WLS has
    a complete UDDI implementation builtin [2] for this purpose.
    You are correct, you need to pass the service address location found in
    the <service> section of the WSDL.
    Hope this helps,
    Bruce
    [1]
    http://www.uddi.org/
    [2]
    http://e-docs.bea.com/wls/docs81/webserv/uddi.html
    Stephen Kurlow wrote:
    >
    I am not sure what I need to do to be able to call a remote webservice (runs on
    another weblogic server instance running on another machine in the same network)
    from within a webservice. I have 2 wsdl files and I have created webservice controls
    from them. I have successfully written code in the first webservice to instantiate
    the parms to the 2nd webservice and invoked the 2nd webservice when both webservices
    are deployed to the same weblogic server instance. So i can see the params being
    marshalled and unmarshalled in the test browser.
    Now how do I install the 2nd webservice on another weblogic server instance and
    instruct the 1st web service to call the 2nd webservice residing on another weblogic
    server instance? I presume some kind of lookup (url?) is needed and is it via
    what is contained in the wsdl file?
    Thanks in advance,
    Stephen Kurlow

  • PDF link of type "open a file" won't work from within web-browser

    Hi!
    I have a pdf-document in which I have created a link of the type "Open a file" ( in this case it is a word document, but the type of file doesn't matter).  When I click this link directly in Acrobat (Acrobat 9 Standard) it works just as excpected, that is, the document opens in word, after I've confirmed to Acrobat that it's ok to open.
    Opening the pdf itself from within a web-browser (IE8) is no problem. The document is opened by the Acrobat plug-in, inside the web-browser, as expected. The "hot-spot" to the link is also there, but when I click on the link, Acrobat (I think it's Acrobat and not the web-browser) asks me if it's ok to "Connect to file://///C:/testdoc.doc". And when I confirm this nothing happens (of course, since there are way too many slashes added after the "File:" beginning of the string.
    When I doublecheck the link in Acrobat Standard with the link tool, it look perfectly allright (under "Actions" I find the heading "Open a file" and under that the text "File: C\testdoc.doc").
    Anyone know where the problem lies?
    Thanks for any help!
    Regards
    Per Williamson
    Stockholm
    Sweden

    I found mention online that linking to a zipped pdf file will cause the browser to download the PDF to the local user's PC where they can complete and submit the form (the mailto: command button works when the PDF is opened locally rather than within a browser window).  If there is a more "elegant" solution, I would be grateful for your advice.

  • Time capsule remote access from friends computer

    Heya guys.
    Ive just bought a time capsule and i really like it. It just seems to work!
    I have set it up with icloud and back to my mac. Which I am assuming that I will be able to access my time capsule when I am away from my network with my mac? Just spoke to apple support and they said thats not what its for??
    But my main question is, is there a way to log into my icloud on a friends computer and see and use the files on my time capsule?
    Thanks

    Yes, that should be possible.
    But there is plenty of slips as they say.
    See Tesserax document on remote access.
    https://discussions.apple.com/docs/DOC-3413
    See the reality on the ground.. the whining of the masses.
    https://discussions.apple.com/thread/3699096?start=0&tstart=0

  • I have remote access from my IMAC to my windows PC at work. How do I set up the keyboard functions to work on the work PC when I work from home?

    I have remote access using my IMAC. The computer at work is a Windows PC, how do I set up the IMAC's keyboard to function as the same one at work?

    Port 3389 should be open on your work network. Check with your admin. They know what ports are open on your work firewall.

  • Em console can't be accessed from other computer browser

    I have Grid Control running on my server. I can get into Grid Control Web Console from the server.
    The problem is, when I try to get into the console from outside computer browser, I cannot get into the console.
    https://server_ip:1159/em
    But I can get to the
    https://server_ip:1159/
    its the Oracle Application Server Welcome Page.
    When I checked on the application server, I get some servlet that is not loaded (including ManagementService servlet). Is it the cause of the problem?
    How can I load the servlet?? below is the screen capture of the not loaded servlet.
    http://www.screencast.com/t/MGNiNTRkZjQ
    I already try to redeploy the em.ear but still got nothing..

    Processes in Instance: EnterpriseManager0.jktmdkhse01
    ------------------------------------------------+---------
    ias-component | process-type | pid | status
    ------------------------------------------------+---------
    LogLoader | logloaderd | N/A | Down
    dcm-daemon | dcm-daemon | 19284 | Alive
    OC4J | home | 20444 | Alive
    OC4J | OC4J_EM | 20036 | Alive
    OC4J | OC4J_EMPROV | 17704 | Alive
    OC4J | OCMRepeater | 5172 | Alive
    HTTP_Server | HTTP_Server | 19460 | Alive
    WebCache | WebCache | 17008 | Alive
    WebCache | WebCacheAdmin | 4488 | Alive
    DSA | DSA | N/A | Down
    I get this. LogLoader and DSA is down.. What is LogLoader and DSA?

  • Setting up remote access from PC to Mac using DynDNS

    Hi Guys,
    I'm hoping someone can help out, I'm quite desperate here.
    I am about to head overseas for three weeks, and need to leave my Mac running, so that I can log into it remotely using a PC. My Mac, is a MacBook Pro, and the PC I will be using is an Asus EEE PC. I will need to do simple things like grab files, open PDFs and run a few applications from time to time on the Mac.
    I have a billion 7404VGP router that my Mac will be plugged into, using an ADSL connection. I have a dynamic IP address so I have setup a DynDNS account.
    I have read countless tutorials, and posted to a few different sites, but I can not get any consistency in responses or guidance on how to set this up properly. It's killing me.
    Am I correct in understanding that VNC is the best method to do this? I'm being told that I also need to open all sorts of ports on the router. Some say I need to 'SSH', others say I need to 'VPN'. I'm quite technically literate but I'm lost in all the protocols and variations people are saying I need to use.
    So far, I have setup the following:
    *On the Mac:*
    - Enabled 'Screen Sharing' in OS X System Preferences > Screen Sharing
    - Specified a password for 'VNC viewers may control the screen' within Screen Sharing settings
    - Setup a DynDNS account, and created a custom name (ie myname.dyndns.org)
    *On the Billion Router*
    - Setup the DynDNS configuration so that when the IP address changes it tells the server
    - Under Virtual Server, I have added a port forwarding entry as follows:
    Schedule: Always On
    Application: DynDNS
    Protocol: TCP
    External Port: 80 to 80
    Redirect Port 80 to 80
    Internal IP Address: This is where I think I need guidance. I have to select the IP associated with my MAC address, so the IP is 192.168.1.4.
    This is as far as I have gotten. I have installed a VNC viewer on the PC, and tried to login using the IP address that shows up in my DynDNS account, but nothing is working.
    What am I doing wrong? Can somebody kindly explain (or direct me to), a straight english step by step process of how I can get this going? Any guidance is appreciate it.
    Thanks so much.

    I am about to head overseas for three weeks, and need to leave my Mac running, so that I can log into it remotely using a PC. My Mac, is a MacBook Pro, and the PC I will be using is an Asus EEE PC. I will need to do simple things like grab files, open PDFs and run a few applications from time to time on the Mac.
    The grabbing of files is going to complicate things a little bit, as now you want 2 things, not just one.
    I have a billion 7404VGP router that my Mac will be plugged into, using an ADSL connection. I have a dynamic IP address so I have setup a DynDNS account.
    I have read countless tutorials, and posted to a few different sites, but I can not get any consistency in responses or guidance on how to set this up properly. It's killing me.
    Am I correct in understanding that VNC is the best method to do this? I'm being told that I also need to open all sorts of ports on the router. Some say I need to 'SSH', others say I need to 'VPN'. I'm quite technically literate but I'm lost in all the protocols and variations people are saying I need to use.
    VNC is a way to control the Mac remotely. But grabbing files will require something else, which is most likely why you got some suggestions for ssh, and/or VPN.
    I'm going to suggest TeamViewer Screen Sharing and File Transfer utility (free for personal use).
    <http://teamviewer.com/index.aspx>
    The advantage of TeamView is that you can both control the screen and you can grab files all in one package.
    Just make sure you fully test your setup before leaving.
    However, if you want to pursue VNC, I'll add comments below.
    So far, I have setup the following:
    *On the Mac:*
    - Enabled 'Screen Sharing' in OS X System Preferences > Screen Sharing
    - Specified a password for 'VNC viewers may control the screen' within Screen Sharing settings
    This should be a strong password.
    - Setup a DynDNS account, and created a custom name (ie myname.dyndns.org)
    So far so good
    *On the Billion Router*
    - Setup the DynDNS configuration so that when the IP address changes it tells the server
    - Under Virtual Server, I have added a port forwarding entry as follows:
    Schedule: Always On
    Application: DynDNS
    Protocol: TCP
    External Port: 80 to 80
    Redirect Port 80 to 80
    Internal IP Address: This is where I think I need guidance. I have to select the IP associated with my MAC address, so the IP is 192.168.1.4.
    The port numbers are wrong. Port 80 is for a web server. VNC uses port 5900.
    Did you have to manually enter that IP address when you setup the port forwarding? Or does the router have some way of locking into your Mac?
    I ask, because of your Mac's IP address is assigned via DHCP, then it is possible the router could change the address it gives to the Mac on a power failure restart, but the port forwarding might be locked into 192.168.1.4.
    So if the router needs to have a stable IP address for port forwarding, then you might want to configure the Mac with a fixed IP address (preferably one outside of the routers DHCP assignment range), then use that fixed IP address with port forwarding (always test any configuration change such as this).
    Oh yea, you are configuring your Mac to automatically reboot when power is restored (System Preferences -> Energy Saver -> Options -> Restart automatically after power failure
    This is as far as I have gotten. I have installed a VNC viewer on the PC, and tried to login using the IP address that shows up in my DynDNS account, but nothing is working.
    As mentioned, you need to forward port 5900 for VNC.
    What am I doing wrong? Can somebody kindly explain (or direct me to), a straight english step by step process of how I can get this going? Any guidance is appreciate it.
    Port forwarding port 5900 should do the trick.
    However, at this point you only have screen sharing. You can do stuff to your Mac, but you can not transfer files via this connection.
    This is where suggestions for ssh come in (or you could go back to my TeamViewer idea ).
    Ssh can offer remote terminal login (PuTTY is a very good Windows Terminal emulator). Ssh can also offer scp (ssh cp) and sftp (ssh ftp) services, both of which can be used to transfer files to and from the Mac securely over the internet.
    The easiest PC/Mac file transfer while traveling, would be to find a good Windows sftp GUI application. There are a bunch of them for the Mac so there must be 4 or 5 times as many Windows GUI sftp clients. A Google "windows sftp gui client" search should come up with a few.
    OK, getting ssh working.
    Enable System Preferences -> Sharing -> Remote Login.
    Now on your router, Port Foward port 22, the ssh port.
    Now you should be able to fire up a Windows sftp GUI client, and access your Mac via your DynDNS.org name. The username and password will be your Mac's account short name and password. If you do not know your short name, you can find this via System Preferences -> Accounts
    Summary:
    o Forward port 5900 for VNC
    o Forward port 22 for ssh
    o Enable Remote Login on the Mac
    o You have already enabled Screen Sharing, and specified a VNC password (goodness).
    o Configure the Mac so it will reboot in case of a power failure.
    o Make sure the router will still be able to port foward 5900 and 22 after a power failure, either because it locks into the Mac, or because you have given the Mac a fixed IP address.
    Now test the heck out of this, from a coffee shop or a friends house.
    Even if you configure VNC and ssh, I would suggest also trying TeamView so you have a "Plan B".

  • X Server and remote access from Windows

    I am contemplating installing a MacMini Server running X Server but different people may need admin access, not all of them on Macs.
    Is there a way where some of the server maintenance is done from a Windows machine using some sort of RDC program or is the only option to do the RDC from a Mac?

    Out of the box OS X will provide access to nearly any VNC client. Many version exist for Windows. You just need to explicitly permit standard VNC access and provide a password. This can be done in System Preferences > Sharing > Remote Management > Computer Settings.
    In that dialog, check "VNC viewers may control screen with password" and set a password. In leopard the text box had a character limit. I have not tested in Snow yet. If you run into a problem, you can use the kickstart command line tool as it appears to have no character limit.
    Oh, one other tip. Many Window's VNC clients will fail to establish a connection. This is because the screen depth is set to low. Make sure you set the number of colors on the VNC client to the highest it will go.
    Hope this helps

Maybe you are looking for

  • OIM11G: OOTB ResourceAdministratorApproval Working?

    All, Has anyone tried the OOTB ResourceAdministratorApproval with 11G? I am trying the same but it does not seem to work. My requirement is to send the request for approval to the resource administrator group on self requested modification for provis

  • Smartform : Require a dotted line for a window

    Hi, Can you please provide a way to have a dotted line for a window in Smart forms. I have used the ‘Template’ options ‘Dashed Lines’ (of the Tab ‘Grid’), but not successful. Regards, Karuna Reddy

  • Executing *.java using unix process

    Hi, I have a problem with executing *.java command using unixprocess in java class. My java code snippet contain like... Process p = Runtime.getRuntime().exec(command); where command= "/data1/oracle/product/10.1.3.1/OracleSOA/jdk/bin/javac -d /tmp/cl

  • HT201361 How do i sync books I've put on my mac ibooks with iPhone

    i have mac pro and downloaded and put on books in ibooks however it wont sync with my ibooks on my iphone (apple id the same ) the kindle and amazon email is not the same as apple id so they wont sync any ideas to merge them ive put them in the kindl

  • Windows not loading in Snow leopard

    After my SL upgrade some programs load but i can't see their main window. I do not have spaces setup nor is spaces enabled. Anyone else encountering the same issue.