Results 1 to 10 of 10
Thread: Connectivity Test
- 08-15-2008, 05:09 PM #1
Member
- Join Date
- Aug 2008
- Posts
- 5
- Rep Power
- 0
Connectivity Test
Hi All, first time poster....
I need a really simple java applet that just attempts to connect to a server on a specific port. The reason for this is we are loading software on site's machines but some are having trouble with Proxies / Firewalls. If an applet could load, then check and display a result - this would help us immensely.
Any ideas anyone?
Cheers!
J
- 08-15-2008, 08:25 PM #2
Why do you need an applet? Can't you use a browser?
For example enter: http://somewhere.com:8000 in the browser's address field.
Can you explain the setup better?
- 08-15-2008, 10:54 PM #3
Member
- Join Date
- Aug 2008
- Posts
- 5
- Rep Power
- 0
Yes sorry,
This software is going out thousands of users across the UK. A lot of the users will have little experience with using a computer, getting them to type in a URL with port numbers would be way too difficult. We already have a 'PC Check' page which uses javascript to detect if they have the neccessary software requirements such as Flash, Shockwave etc. It would be great if we could have an applet that loads up on the same page that indicates to them quite clearley if something is not right.
Cheers,
James
- 08-15-2008, 11:49 PM #4
For example, you have a website that the user will go to with his browser. That website will return an HTML page with an applet. That applet will then ask the website it was just loaded from some questions and then indicates to them quite clearly if something is not right.Can you explain the setup better?
Is that what you are looking for?
There would have to be code of some kind on the server the applet was loaded from to answer the questions the applet is asking and to give a response to the applet.
- 08-15-2008, 11:51 PM #5
Member
- Join Date
- Aug 2008
- Posts
- 5
- Rep Power
- 0
No, a user will load a webpage which will try to connect to another webserver on port 443. The page will tell them whether it was able to make a connection.
An example is here:
gvsi.com / javatest / checklist.asp
test 4b
- 08-16-2008, 12:01 AM #6
Applets(without permission) are only allowed to connect to the site they were loaded from.another webserver
You can put the applet in a jar file and sign it. That may allow the user to grant permission for the applet to connect to another site.
- 08-16-2008, 12:05 AM #7
Member
- Join Date
- Aug 2008
- Posts
- 5
- Rep Power
- 0
Yes - this would be possible, we could load the jar on the same server/domain, but just get it to check port 443 when loaded.
Where would I start though!
- 08-16-2008, 02:45 AM #8
Does that mean that the HTML/applet would be loaded from the server that has port 443 you want to test?load the jar on the same server/domain
The applet code would use a Socket class with port 443 and use the getCodeBase() method to get the address of the server it was loaded from.
If you'd like a demo of a signed jar, I signed a jar for testing a while ago and put it on a web site. It will try to read a file: C:\\AppletTestFile.txt
Its at: Applet Reader
My browser asks me if I want to trust it. If I do, it will read and display the contents of the file.
- 08-16-2008, 04:08 PM #9
Member
- Join Date
- Aug 2008
- Posts
- 5
- Rep Power
- 0
But where would I start with the applet! I have an idea but not sure its correct
Last edited by jimhaddon; 08-16-2008 at 04:42 PM.
- 08-16-2008, 04:40 PM #10
Similar Threads
-
database connectivity
By rilwanfit in forum NetworkingReplies: 1Last Post: 03-13-2009, 07:54 PM -
Connectivity between Servlet and Midlet
By adarsh_2484 in forum New To JavaReplies: 1Last Post: 07-29-2008, 04:09 PM -
java database connectivity
By thamizhisai in forum Advanced JavaReplies: 1Last Post: 04-28-2008, 05:59 PM -
ensure connectivity
By perdoname in forum JDBCReplies: 1Last Post: 04-22-2008, 02:29 AM -
Test Advisory Panel-Telecommute- Test your Java skills + share insights on Java tests
By michelle in forum Jobs OfferedReplies: 0Last Post: 04-05-2008, 12:38 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks