webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  IP address of Server

    Posted Fri August 22, 2003 02:55 PM

    Hi All

    I want to get the ipaddress of the wmServer running my service.

    Thanking you in anticipation


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: IP address of Server

    Posted Fri August 22, 2003 04:28 PM

    Write a Java service. Use the java.net.InetAddress class.


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: IP address of Server

    Posted Tue August 26, 2003 03:08 AM

    Hi guys - I thought I’d post a quirk I’ve seen with WM and IP addresses.

    Over here, we run IS servers on machines with multiple IP addresses. We tell the WM server the IP address it should bind to, using the “watt.net.inetaddress=<ip_addr>” directive in the server.cnf.

    So Atul, you could try this method - specify the IP in server.cnf, and simply inspect the “watt.net.inetaddress” property at runtime.

    IS will ‘listen’ on the IP specified by “watt.net.inetaddress” – i.e. clients can connect to it at this IP. But the quirk is that when IS initiates a network connection (say, using pub.client:http). It initiates the connection using the DEFAULT network address – NOT the IP specified in server.cnf.

    Any ideas about this?


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 4.  RE: IP address of Server

    Posted Tue August 26, 2003 05:33 PM

    Yes as the settings indicate binding a port to an ip address are for listeners (incoming requests). Therefore for outgoing connections these ports are irrelevant and therefore can’t be used to configure the ip address to bind to. It would be nice to at least be able to bind the outgoing connections to a specified ip address rather than the default address. All ip addresses within IS are for incoming requests unfortunately.


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: IP address of Server

    Posted Tue August 26, 2003 05:44 PM

    The outbound path for a socket request is determined by the routes defined on the host.

    So if a machine has multiple IP addresses, it may also have a route to identify which one to use, to connect to a specific IP address.

    Normally, these routing tables are kept dynamic and operate at Link Layer

    Networking Gurus! please correct me if I am wrong.


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: IP address of Server

    Posted Tue August 26, 2003 05:45 PM

    Opps. Routing occurs at Network Layer. Bridging occurs at Link Layer. I have corrected myself.


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 7.  RE: IP address of Server

    Posted Wed August 27, 2003 06:45 AM

    Thanks guys.

    Atul - a correction to what I said - the server IP directive is “watt.server.inetaddress”, not “watt.net.inetaddress”

    My TCP/IP sockets knowledge is rusty, but I think a TCP/IP client can create a connection from a specific local IP address, right? It would be good for WM to default the client IP address to the value of “watt.server.inetaddress” and allow a new “watt.net.inetaddress” directive to override that.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services