|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Hello. I'm really hoping someone can help me with this...
I'm running a LabView DataSocket Server and an Apache HTTP Server. I have written a small Java Applet that connects to the DataSocket server and writes a random integer. Running this Applet from my local computer using AppletViewer gives the wanted result. Copying the Applet to my WebServer catalog and running it from IE 5.0 (still using my local computer) is also successfull. My problems begin when running the Applet in a browser from a remote computer. Everything in the Applet works fine until it's trying to connect to the DataSocket server. This fails. Any suggestions? Why on earth does the Applet work perfectly when run on my local computer, but not from the same WebServer when run remotely. Any help would be appreciated. Thanx Anders, NUST |
|
#2
|
||||
|
||||
|
Bad news for you there, anderaus. Simply put - there is no way java applet can connect to 3rd party host when code is downloaded from somewhere else.
__________________
And you know I mean that. |
|
#3
|
|||
|
|||
|
Thanks for answering, Al
The DataSocket server and the Apache server (with the Applet) is running on the same machine. I am also running a MySQL server on this machine, which the Applet accesses without any problems... how come it's not able to access the DataSocket server. It (both the sql and ds) works fine when running the Applet from the server-machine, but not remotely (ds doesn't work, but sql's fine). Anders |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Java Applet & DataSocket |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|