<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to direct socket connections using JAVA and logical tcpip$inet_addr ? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/how-to-direct-socket-connections-using-java-and-logical-tcpip/m-p/4055794#M38268</link>
    <description>The communicate is between UNIX and VMS&lt;BR /&gt;UNIX sends initial request to VMS on port 8081. &lt;BR /&gt;VMS responds to UNIX  and in response packet the return address is provided.&lt;BR /&gt;UNIX sends next response to VMS on address provided. Firewall drops packet.&lt;BR /&gt;VMS has 3 interfaces. Only 1 network will provide the connectivity. &lt;BR /&gt;&lt;BR /&gt;It seems that the only way to control the address of the response packet is by the value stored in tcpip$inet_addr. &lt;BR /&gt;&lt;BR /&gt;Defining tcpip$inet_addr in the process table has no affect.&lt;BR /&gt;I have also logged as a fault with HP.&lt;BR /&gt;</description>
    <pubDate>Sun, 19 Aug 2007 18:44:25 GMT</pubDate>
    <dc:creator>Thomas Ritter</dc:creator>
    <dc:date>2007-08-19T18:44:25Z</dc:date>
    <item>
      <title>How to direct socket connections using JAVA and logical tcpip$inet_addr ?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-direct-socket-connections-using-java-and-logical-tcpip/m-p/4055792#M38266</link>
      <description>We have communications between unix and vms using Java/RMI. Our VMS hosts have at least three Ethernet connections. The basic java implementation on VMS seems to use the logical tcpip$inet_hostaddr to request the caller where to send the returning packet.  The obvious problem being that tcpip$inet_hostaddr can only have one value at any time and has system scope. The developers claim they have no control over how java uses this logical. Ideally we would like to direct java to use any of the three possible interfaces. I have asked for samples of code to show how the socket connections are currently working. &lt;BR /&gt;There must be something in java to control socket connections. What do the experts think ?&lt;BR /&gt;&lt;BR /&gt;VMS 7.3-2 ucx 5.4 eco5, &lt;BR /&gt;java version "1.3.1"&lt;BR /&gt;Java(TM) 2 Runtime Environment, Standard Edition&lt;BR /&gt;Classic VM (build 1.3.1-7, 12/15/2003-21:59, native threads, jit)&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Aug 2007 21:24:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-direct-socket-connections-using-java-and-logical-tcpip/m-p/4055792#M38266</guid>
      <dc:creator>Thomas Ritter</dc:creator>
      <dc:date>2007-08-16T21:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to direct socket connections using JAVA and logical tcpip$inet_addr ?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-direct-socket-connections-using-java-and-logical-tcpip/m-p/4055793#M38267</link>
      <description>"The basic java implementation on VMS seems to use the logical tcpip$inet_hostaddr to request the caller where to send the returning packet."&lt;BR /&gt;&lt;BR /&gt;I'm not sure what this means: who's the caller in this&lt;BR /&gt;situation? An incoming connection?&lt;BR /&gt;&lt;BR /&gt;I can see two cases here:&lt;BR /&gt;&lt;BR /&gt;a) You are listening for connections and want to control&lt;BR /&gt;which local IP address (Ethernet connection) to listen on.&lt;BR /&gt;&lt;BR /&gt;The Java ServerSocket class constructors let you specify the local IP address.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://java.sun.com/j2se/1.4.2/docs/api/java/net/ServerSocket.html#ServerSocket(int,%20int,%20java.net.InetAddress)" target="_blank"&gt;http://java.sun.com/j2se/1.4.2/docs/api/java/net/ServerSocket.html#ServerSocket(int,%20int,%20java.net.InetAddress)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;b) You are connecting out and want to go out via a particular local IP address.&lt;BR /&gt;&lt;BR /&gt;The Java Socket class constructors let you specify the local &lt;BR /&gt;IP address.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html#Socket(java.net.InetAddress,%20int,%20boolean)" target="_blank"&gt;http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html#Socket(java.net.InetAddress,%20int,%20boolean)&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If Java is using the TCPIP$INET logical in some way you cannot control in Java, you can redefine it in a job or process or group table to override the system logical.</description>
      <pubDate>Sat, 18 Aug 2007 16:47:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-direct-socket-connections-using-java-and-logical-tcpip/m-p/4055793#M38267</guid>
      <dc:creator>Jonathan Cronin</dc:creator>
      <dc:date>2007-08-18T16:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to direct socket connections using JAVA and logical tcpip$inet_addr ?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-direct-socket-connections-using-java-and-logical-tcpip/m-p/4055794#M38268</link>
      <description>The communicate is between UNIX and VMS&lt;BR /&gt;UNIX sends initial request to VMS on port 8081. &lt;BR /&gt;VMS responds to UNIX  and in response packet the return address is provided.&lt;BR /&gt;UNIX sends next response to VMS on address provided. Firewall drops packet.&lt;BR /&gt;VMS has 3 interfaces. Only 1 network will provide the connectivity. &lt;BR /&gt;&lt;BR /&gt;It seems that the only way to control the address of the response packet is by the value stored in tcpip$inet_addr. &lt;BR /&gt;&lt;BR /&gt;Defining tcpip$inet_addr in the process table has no affect.&lt;BR /&gt;I have also logged as a fault with HP.&lt;BR /&gt;</description>
      <pubDate>Sun, 19 Aug 2007 18:44:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-direct-socket-connections-using-java-and-logical-tcpip/m-p/4055794#M38268</guid>
      <dc:creator>Thomas Ritter</dc:creator>
      <dc:date>2007-08-19T18:44:25Z</dc:date>
    </item>
  </channel>
</rss>

