jQuery in Action, 2nd edition*
The moose likes Sockets and Internet Protocols and the fly likes Relation between Internet Explorer and Socket Connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Relation between Internet Explorer and Socket Connection" Watch "Relation between Internet Explorer and Socket Connection" New topic
Author

Relation between Internet Explorer and Socket Connection

Prakash Dwivedi
Ranch Hand

Joined: Sep 28, 2002
Posts: 452
Hello,
i am developing a servlet in which i have to read data from some other web application(at present this another web application is running on different machine, but on same LAN). To do that i establish httpUrlConnection. Following is the code

the code gives java.net.SocketException while opening the connection.
I got even further confused when i added 192.100.100.249 in the list of "do not use proxy server for following ip addres" in Internet Explorer and my servlet started working correctly.
what i am not able to understand is the relation between establishing Socket Connection from a servlet and IE. I am using window 2000.
can any body help me.


Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Are we talking about IE running on the machine the servlet runs on -- in other words, the servlet is running on Windows?


[Jess in Action][AskingGoodQuestions]
Prakash Dwivedi
Ranch Hand

Joined: Sep 28, 2002
Posts: 452
thanks for the reply Ernest.
Are we talking about IE running on the machine the servlet runs on
yes thats correct
in other words, the servlet is running on Windows?
i mentioned in my post that I am using window 2000.
[ February 04, 2004: Message edited by: Prakash Dwivedi ]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Yes, but using it for what? Are you talking about IE and the servlet running on the same physical machine, or are you talking about IE being used to access the servlet from a client machine? While I'm asking, what servlet container are you using?
Prakash Dwivedi
Ranch Hand

Joined: Sep 28, 2002
Posts: 452
I am running my web application through JDeveloper which is having embedded OC4J.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Relation between Internet Explorer and Socket Connection
 
Similar Threads
Connecting to the webserver from simple java program with main method
HTTPS/ certificate problem
DELETE http request in HttpURLConnection....
how to send a string to a servlet from a java program
How to specify the name of the database