establish socket connection

hi all

i am a problem with establishing connection through socket

what i want to do is:

establish connection with servlet which is deployed on tomcat server

let url of servlet behttp:192.123.0.3:8080/abc/servlet

192.123.0.3 is host

8080 is tomcat port

abc/servlet is servet url

can any body help me out

thanks

[373 byte] By [harrriiiia] at [2007-10-3 8:50:22]
# 1
How exactly are you trying to connect. And please don't tell me that you are trying to open a simple socket to the tomcat server. It can work, but have fun reinventing the wheel on the protocol for http.
masijade.a at 2007-7-15 3:59:47 > top of Java-index,Archived Forums,Socket Programming...
# 2
1) Specify url using java.net.URL2) Establish connection by openConnection() method in URL class. and will return URLConnection object.3) Use getInputStream() method of URLConnection class and will return InputStream object.
harishotya at 2007-7-15 3:59:47 > top of Java-index,Archived Forums,Socket Programming...