Home arrow static arrow Java Programming [Archive] - Port opening in Java
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Port opening in Java
This topic has 2 replies on 1 page.

Posts:61
Registered: 8/20/01
Port opening in Java  
Jul 28, 2004 5:58 AM



 
HI there,

I wanna make a program, which opens a port - well this is quite easy, but
I want, that anybody who connects to this port (xxx.xxx.xxx.xxx:port) see an applet in IE, which communicates with the programm, which opened it.

Has anyone still done this?
 

Posts:8,813
Registered: 10/4/00
Re: Port opening in Java  
Jul 28, 2004 6:06 AM (reply 1 of 2)



 
Sure, lots of people have done this. All web servers have a port open (usually 80) which allow anyone who connects to it (with a browser) can download an applet and run it. You don't necessarily need to use port 80 or a browser, but you do need a port on the server and some client software to manage the requests and run the applet.
 

Posts:61
Registered: 8/20/01
Re: Port opening in Java  
Jul 28, 2004 6:12 AM (reply 2 of 2)



 
well, but the applet should not be on any webserver, it should stay on my computer.

There should be a program, which opens a port and listens - if any person connects to my ip and to this open port - should be able to see an applett (which is on my computer) .

And how do I get my computer to know, that for exampe port 8000 should start and show an aplett which communicates with the server application?!

Maybe I have missunderstood anything ^- ^
thx !
 
This topic has 2 replies on 1 page.