Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where is "network: Connecting socket://10.40.12.238:17103 with proxy=DIRECT" printing from

 
chandan talukdar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

In my java based client application, I am seeing the following lines printing on the java console.

network: Connecting socket://10.40.12.238:17103 with proxy=DIRECT

Can anyone tell me from where these lines are coming from.

Thanks in advance
Chandan
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which type of java client are you using ? REST based , JAX WS based ?
I have normally seen this kind of URL when Java Applets try to download some file.
Please provide some more details around type of client, what kind of operation are you performing ?
~ abhay
 
chandan talukdar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnaks Abhay for the quick reply.

Here, I am using an RMI based java client which will connect to a remote server. The client reads the hostname and port from a configurable file and connects to the remote server. But, while connecting, the client application is trying to connect to the physical IP address rather than the virtual host name and this is causing some issues in the production environment. I came to know about it after seeing the following messages in the java console.

network: Connecting socket://10.40.12.238:17103 with proxy=DIRECT

Hence, I am trying to find out from which java library, these lines are coming. I have downloaded the JDK source code, but could not find such statements.

Best Regards
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But, while connecting, the client application is trying to connect to the physical IP address rather than the virtual host name


What does the code in the client application look like? The one which is doing the connection.
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to find out from which java library, these lines are coming

Probably from Java Socket API
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic