HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - OpenVMS
 - >
 - Re: How to direct socket connections using JAVA an...
 
Operating System - OpenVMS
        1840139
        Members
    
    
        2217
        Online
    
    
        110161
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              Forums
Discussions
Forums
- Data Protection and Retention
 - Entry Storage Systems
 - Legacy
 - Midrange and Enterprise Storage
 - Storage Networking
 - HPE Nimble Storage
 
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
 - Appliance Servers
 - Alpha Servers
 - BackOffice Products
 - Internet Products
 - HPE 9000 and HPE e3000 Servers
 - Networking
 - Netservers
 - Secure OS Software for Linux
 - Server Management (Insight Manager 7)
 - Windows Server 2003
 - Operating System - Tru64 Unix
 - ProLiant Deployment and Provisioning
 - Linux-Based Community / Regional
 - Microsoft System Center Integration
 
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
Topic Options
			
				
					
	
			
		
	- Subscribe to RSS Feed
 - Mark Topic as New
 - Mark Topic as Read
 - Float this Topic for Current User
 - Bookmark
 - Subscribe
 - Printer Friendly Page
 
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
08-16-2007 02:24 PM
08-16-2007 02:24 PM
			
				
					
						
							How to direct socket connections using JAVA and logical tcpip$inet_addr ?
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						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. 
There must be something in java to control socket connections. What do the experts think ?
VMS 7.3-2 ucx 5.4 eco5,
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition
Classic VM (build 1.3.1-7, 12/15/2003-21:59, native threads, jit)
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
There must be something in java to control socket connections. What do the experts think ?
VMS 7.3-2 ucx 5.4 eco5,
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition
Classic VM (build 1.3.1-7, 12/15/2003-21:59, native threads, jit)
		2 REPLIES 2
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
08-18-2007 09:47 AM
08-18-2007 09:47 AM
			
				
					
						
							Re: How to direct socket connections using JAVA and logical tcpip$inet_addr ?
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						"The basic java implementation on VMS seems to use the logical tcpip$inet_hostaddr to request the caller where to send the returning packet."
I'm not sure what this means: who's the caller in this
situation? An incoming connection?
I can see two cases here:
a) You are listening for connections and want to control
which local IP address (Ethernet connection) to listen on.
The Java ServerSocket class constructors let you specify the local IP address.
http://java.sun.com/j2se/1.4.2/docs/api/java/net/ServerSocket.html#ServerSocket(int,%20int,%20java.net.InetAddress)
b) You are connecting out and want to go out via a particular local IP address.
The Java Socket class constructors let you specify the local
IP address.
http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html#Socket(java.net.InetAddress,%20int,%20boolean)
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.
		
		
	
	
	
I'm not sure what this means: who's the caller in this
situation? An incoming connection?
I can see two cases here:
a) You are listening for connections and want to control
which local IP address (Ethernet connection) to listen on.
The Java ServerSocket class constructors let you specify the local IP address.
http://java.sun.com/j2se/1.4.2/docs/api/java/net/ServerSocket.html#ServerSocket(int,%20int,%20java.net.InetAddress)
b) You are connecting out and want to go out via a particular local IP address.
The Java Socket class constructors let you specify the local
IP address.
http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html#Socket(java.net.InetAddress,%20int,%20boolean)
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.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
08-19-2007 11:44 AM
08-19-2007 11:44 AM
			
				
					
						
							Re: How to direct socket connections using JAVA and logical tcpip$inet_addr ?
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						The communicate is between UNIX and VMS
UNIX sends initial request to VMS on port 8081.
VMS responds to UNIX and in response packet the return address is provided.
UNIX sends next response to VMS on address provided. Firewall drops packet.
VMS has 3 interfaces. Only 1 network will provide the connectivity.
It seems that the only way to control the address of the response packet is by the value stored in tcpip$inet_addr.
Defining tcpip$inet_addr in the process table has no affect.
I have also logged as a fault with HP.
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
UNIX sends initial request to VMS on port 8081.
VMS responds to UNIX and in response packet the return address is provided.
UNIX sends next response to VMS on address provided. Firewall drops packet.
VMS has 3 interfaces. Only 1 network will provide the connectivity.
It seems that the only way to control the address of the response packet is by the value stored in tcpip$inet_addr.
Defining tcpip$inet_addr in the process table has no affect.
I have also logged as a fault with HP.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP