How to specify source IP address when opening TCP connection?

Hi ! 
We are building a system in which a server communicates with a multi-homed Linux client with three network interfaces.  All interfaces are routable to the server, but the server only accepts connections from one of those interfaces.
We need the server to specify different local source addresses for each client but the Open_TCP_Connection vi does not provide the capability to specify the local source address.  Is there a way in LabVIEW open a TCP client connection and specify the source address?
Thanks,
-John

What you are describing would mean that your server machine is creating client to communicate with another server. Client never accept a connection. They alwasy connect to a server.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Similar Messages

  • Error when opening RFC Connection

    Hello SAPers,
    I have configured PDA in my ECC6.0 --- XI (ABAP+JAVA) Which was successful.
    In my Web Dyno Pro Content Administrator
    I have performed the JCO Destinations test which was successful
    when I go to the URL
    http://server:port/webdynpro/dispatcher/sap.com/isisrsrsmenapp/MainApp
    entered the store number
    In the next menu
    Inventory Lookup when I enter the Article number and press Go Button
    It is giving me error " Error when opening RFC Connection "
    Rest of them working perfectly...
    Do I need to do any configuration In Visual Admin?
    Could anyone advice
    Thanks In Advance
    HariKrishna

    Thanks it got solved it was an error in RFC, I have changed the RFC now it is working fine
    Thanks
    Hari

  • How can i unlock my ipad when it show connect to itunes

    how can i unlock my ipad when it show connect to itunes

    Force iPad into Recovery Mode. Follow step 1 to 6 very closely.
    http://support.apple.com/kb/HT1808
    Note: You may have to repeat the above a few times.

  • How do I specify the file extensions when opening a file in Labview?

    When opening a file, the file open dialogue box appears with a drop down box called 'Files of type *.*
    I want to only display files of type IPC, and I will create all my files to have this extension.
    I have been using this technique in VB for some time, but I cannot find a method of doing this in Labview so far, can anyone help?

    Use the function "File Dialog" and wire your type to "pattern label".
    Hope this helps.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...

  • How to specify source directory in File sender adpate using (NFS)?

    Hello experts,
    I am doing File-PI-Proxy scenario.
    Input file is available on machine which is within the Network area and FTP is not available on that machine.
    For this reason I am using the NFS Transport Protocol.
    In ID File sender I have specified Source Directory:-
    IP Address\Directory
    I am geeting the Error in RWB as 'Configured source directory '
    IP Address\Directory' does not exist'.
    Please suggest how to specify the Source Directory path.
    Regards,
    Jagesh

    Hi,
    If you want to use NFS protocol, then the file needs to be within the a folder in the XI server and not outside it, In your case if you need to use the file in a different machine which is on a network then try to use the FTP protocol.
    Refer this blog:
    /people/shabarish.vijayakumar/blog/2006/08/01/along-came-a-file-adapter-mr-ftp-and-rest-of-the-gang which shows the details of how you can install a local FTP and use it
    Regards,
    Nithiyanandam
    Edited by: Nithiyanandam A.U. on Mar 18, 2009 10:43 AM

  • How to undo "remember my choice" when opening a downloaded document in firefox (windows 8).

    I need to open a pdf in the firefox broswer, but since I clicked "open in TWINUI", and remember my choice, it doesn't let me open in the broswer anymore. How do I change that preference?

    You can change file actions in Tools > Options > Applications
    *http://kb.mozillazine.org/File_types_and_download_actions
    See:
    *https://support.mozilla.org/kb/change-firefox-behavior-when-open-file
    Current Firefox versions have enabled a built-in PDF Viewer that doesn't have all features that other PDF readers like the Adobe Reader have or may not function properly otherwise.
    You can change the action for Portable Document Format (PDF) from Preview in Firefox to use the Adobe Reader or set to Always Ask in "Firefox > Options/Preferences > Applications".
    You can set the pdfjs.disabled pref to true on the <b>about:config</b> page to disable the build-in PDF viewer.
    You can check the value of the plugin.disable_full_page_plugin_for_types pref on the about:config page and remove the application/pdf part if present or reset the pref to the default via the right-click context menu.
    See also:
    *https://support.mozilla.org/kb/view-pdf-files-firefox-without-downloading-them

  • How do I attatch email addresses when I'm sending photos from my gallery?

    My addresses are in my Mobile Me account. When sending pictures from my MM account, how do I attatch these addresses?

    Hi,
    Somehow your post  is in Applications > iChat.
    You need to be here https://discussions.apple.com/community/mobileme
    9:56 PM      Tuesday; May 10, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How to specify the IP address in ORB server with multiple IPs

    I'm working on a platform using corba to communicate with each other. For some purpose the server use stringification method (http://www.javaworld.com/javaworld/jw-02-1999/jw-02-enterprise.html?page=2) to tell the client the reference of the remote object. The ior string contains the ip address information of the server. The problem is if I have two network interfaces installed in my machine (ex an ethernet plus an wireless card ) How can I specified the ip address used by the IOR?

    Arumugam.M wrote:
    I saw a forum with netsh for changing the ip address of local system,,,, but noe i couldn't find out that,,,, if any one know please post it,,,Please read the responses in http://forums.sun.com/thread.jspa?threadID=5336317&tstart=0 .

  • How do you name ipad attachments  when opening in dropbox

    ipad attachments openen in other applications kept the name of the attachment.  iOS7 changes the attachment name to an alpha numeric string when opening in another application

    If you've forgotten your iPad's passcode then you will need to restore the device by connecting it to the computer that you normally sync to - you can then copy your content back onto it : http://support.apple.com/kb/HT1212

  • Can't open TCP connection when two network adapter are enabled

    Hi all, 
    I've an applicaiton that connect using "TCP Open Connection". The applicaiton is running on a computer have two network adapters configured to be on two different network.
    When I start the application, if both network adapters are enabled, connection is not created (timeout). When I disable the network adapter which is not configured for the network I need, connection is succesfull.
    - How can I choose which adapter to use to open the connection, as LabView seems enable to select the good one.
    - Or I can I disable a network adapter (just for the connection time) 
    I'm using LabView 8.5 Full on Windows XP.
    Thanks for your help

    This is generally a routing issue. The OS will route connections to your primary network if it is not a direct route. For example, one network is 10.3.4.x (primary network) and the other is 192.168.1.x.with a subnet of 255.255.255.0. Now, let's say you want to reach a device with an 192.168.2.x address. The OS will try to route this through the primary network but is has no route to reach the 192.168.2.x subnet. Therefore your connection fails. You can add a permanent route to your computer to force specific address ranges to specific NICs. Use the ROUTE ADD command which is part of the OS. If you are trying to reach the computer using a name instead of the IP address the issue is basically the same but a but more challenging to resolve. The OS will do th elookup on your defined DNS servers. They generally do not have knowledge of local private networks and therefore can't resolve the name. In this case you need to create a more involved network infrastructure to update the name server. Probably not something that is feasible to do.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Get phone number when open tcp socket

    I can get phone number and other info of phone when mobile connect to server by http on GPRS, but can I get phone number when connect by tcp socket?

    When you open a tcp connection by socket from mobile phone to IP server, you use ip end to end connectivty. In fact, when you use GPRS support on your mobile phone this one have a public IP address used to establish an IP connection to an other IP device.
    If you want to get the phone number, two solutions :
    1/ you transmit the phone number like a datastream on you socket. But it's a static solution, because you must enter the mobile number as a input (through a textfield form or somethink like that)
    2/You take the phone number in the memory of your mobile phone (Agenda). But it's so compicated because that's depend of type of mobile. The memory design is dedicated mobile by mobile.

  • Oracle error ORA-604 when opening a connection

    I am facing an issue with my WCF service which is using ODP.NET version 4.112.2.0(x64) and Oracle 11g.
    The service runs without any problems on the test servers but on production server (Windows 2008 R2) when an attempt is made to call any service method it fails with the following Oracle error code Ora-604. the message is
    ORA-604: error occurred at recursive SQL level %s
    The exception is thrown when a call to meethod Open is made to open a connection.
    There is no inner exception. So far I have tried checking the connection string, the user permissions and setting the TNS_ADMIN environment variable but nothing has worked.
    Another thing to mention is that another WCF service which uses some of the same stored procedure I am using is working fine on the same server.
    Has anyone seen this before?
    Thanks,
    A

    Do you have a login trigger?
    select * from dba_triggers where triggering_event like 'LOGON%'
    If so, try disabling it.
    Does the working service use the same credentials as this problem service?
    Are you able to connect using sqlplus, with the same credentials from the same client to the same database? If it's not an ODP.NET specific problem, the dba guys might be able to help better: General Database Discussions
    Greg

  • Tracing TCP Source/Destination Addresses/Ports for ongoing connections

    On Solaris 10 U4 through U7, I'm trying the following just to perform basic tracking of TCP source/destination addresses and ports, using code similar to what is available in tcpsnoop_snv and tcptop_snv.
    The odd thing is that the addresses/ports appear to be zeroed out - are they being cached outside of the conn_t data structure?
    #!/usr/sbin/dtrace -Cs
    #pragma D option switchrate=10hz
    #pragma D option bufsize=512k
    #pragma D option aggsize=512k
    #include <sys/file.h>
    #include <inet/common.h>
    #include <sys/byteorder.h>
    #include <sys/socket.h>
    #include <sys/socketvar.h>
    /* First pass, for all TCP Read/Write actions, collect source/destination
       IP + Port - after a few secs, print them all out */
    fbt:ip:tcp_send_data:entry
      /* Outgoing TCP */
      self->connp = (conn_t *)args[0]->tcp_connp;
    fbt:ip:tcp_rput_data:entry
      /* Incoming TCP */
      self->connp = (conn_t *)arg0;
    fbt:ip:tcp_send_data:entry,
    fbt:ip:tcp_rput_data:entry
    /self->connp/
      /* fetch ports */
    #if defined(_BIG_ENDIAN)
      self->lport = self->connp->u_port.tcpu_ports.tcpu_lport;
      self->fport = self->connp->u_port.tcpu_ports.tcpu_fport;
    #else
      self->lport = BSWAP_16(self->connp->u_port.tcpu_ports.tcpu_lport);
      self->fport = BSWAP_16(self->connp->u_port.tcpu_ports.tcpu_fport);
    #endif
      /* fetch IPv4 addresses */
      this->fad12 =
        (int)self->connp->connua_v6addr.connua_faddr._S6_un._S6_u8[12];
      this->fad13 =
        (int)self->connp->connua_v6addr.connua_faddr._S6_un._S6_u8[13];
      this->fad14 =
        (int)self->connp->connua_v6addr.connua_faddr._S6_un._S6_u8[14];
      this->fad15 =
        (int)self->connp->connua_v6addr.connua_faddr._S6_un._S6_u8[15];
      this->lad12 =
        (int)self->connp->connua_v6addr.connua_laddr._S6_un._S6_u8[12];
      this->lad13 =
        (int)self->connp->connua_v6addr.connua_laddr._S6_un._S6_u8[13];
      this->lad14 =
        (int)self->connp->connua_v6addr.connua_laddr._S6_un._S6_u8[14];
      this->lad15 =
        (int)self->connp->connua_v6addr.connua_laddr._S6_un._S6_u8[15];
    /* At this point, this->{f|l}ad1{2345}->connua_v6addr.connua_{f|l}addr._S6_un.S6_u8
        are empty - where is this data? */
    }

    http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/css11500series/v7.50/command/reference/CmdGrpC.html#wp1139667
    portmap [base-port base_number|disable|enable|number-of-ports number|vip-address-range number]
    disable
    Instructs the CSS to perform Network Address Translation (NAT) only on the source IP addresses and not on the source ports of UDP traffic hitting a particular source group. This option does not affect TCP flows.
    For applications with high-numbered assigned ports (for example, SIP and WAP), we recommend that you preserve those port numbers by configuring destination services in source groups. Destination services cause the CSS to NAT the client source ports, but not the destination ports.
    Note If you disable flows for a UDP port using the flow-state table and configure the portmap disable command in a source group, traffic for that port that matches on the source group does not successfully traverse the CSS.
    The CSS maintains but ignores any base-port or number-of ports (see the options above) values configured in the source group. If you later reenable port mapping for that source group, any configured base-port or number-of ports values will take effect. The default behavior for a configured source group is to NAT both the source IP address and the source port for port numbers greater than 1023.
    There is no possibility to disable it for TCP.
    We need to source nat the port to guarantee that the server response comes back on the same module/CPU and the internal packet allocation algorithm is based on src and dst ports.µ
    Gilles:

  • Coherence Extend remote address port in TCP Connection

    Hi,
    From the log below, I see remote address port is picked some random port(48552). (currently i disabled the firewall), If i enable the firewall it could be an issue, is there any way i can specify the remote ports that tcp connection use?
    2011-02-24 13:18:18.076/1280.207 Oracle Coherence GE 3.6.0.1 <D6> (thread=Proxy:ExtendTcpProxyService:TcpAcceptor, member=13): Opened: TcpConnection(Id=0x0000012E56A3CA1B0A1F96B688F7EEBCEDA2AA9397203393CF480379B3963D86, Open=true, LocalAddress=10.31.150.182:9099, RemoteAddress=10.31.150.182:48552)
    One more question,
    I have two proxy servers, is it possible to configure the client to make two connection (redundant) one for first proxy and another for second proxy. is it make sense?
    Thanks
    Prab
    Edited by: 833796 on Feb 24, 2011 2:35 AM

    Hi Prab
    The random port is what normally is called an ephemeral port for the client and is usually not a problem for firewalls since this is expected behavior. If you want to control the client port you can do this by adding the <local-address> to the tcp-initiator element.
    As for the second question, it doesn't quite work to do as you suggest. The proxy contains state for the client, as this is not replicable between the proxies one cannot continue where the other one left off.
    Thanks
    /Charlie

  • How to modify Ship-to address when adding item into SC

    Hello,
    I need to modify a Delivery address (ship-to) address of a shopping cart.
    I tried to create a implementation of BADI BBP_DOC_CHANGE_BADI, method BBP_SC_CHANGE where I tried to loop at et_partner, searching for ship-to address partner (partner_fct = 00000027)
    I updated the building, floor and room fields for this partner
    <fs_partner>-building_p = l_usr_addr-building.
    <fs_partner>-floor_p    = l_usr_addr-floor.
    <fs_partner>-room_no_p  = l_usr_addr-roomnumber.
    but it's ignored in Delivery address tab (the data is not shown) until I clear the ADDR_NO field:
    CLEAR <fs_partner>-addr_no.
    In this case the Delivery address tab displays correct data
    But when this shopping cart requires to be approved (ie because of not enough spending limit of the requistioner), the Approver opens the shopping cart, the delivery address is OK. But when he choose Reject (or any kind of edit action), then click on Delivery address tab, all address fields are empty
    Please suggest how can modify the Delivery adrress ?

    Hello Miroslav,
    As you cleared ADDR_NO, address data for partner Ship-To are deleted: this is logic...
    You need to populate correct ADDR_NO to your Ship-To partner.
    Have a look at wiki below:
    [Delivery Address in Shopping Cart - How does it work ?|http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=230261594]
    Regards.
    Laurent.

Maybe you are looking for