Specifying Ethernet Jack / IP Address in TCP Open

I have a PXI card with multiple ethernet jacks and I would like to be able to specify which jack is to be used for incoming and outgoing communications. I have been able to handle the incoming communications by using the net address property of the TCP Create Listener VI, but I can't seem to find anything similar that would allow me to specify which jack is to be used for outgoing communications. Can anybody suggest how I might solve this problem?
Thanks
Ben

We clearly need more information on how the card is configured. What is the OS?
Is this just a network card with multiple interfaces? Is each interface connected to a different subnet? In this case the routing tables will determine which interface needs to be used for any given outgoing connection. For any given destination IP, only one interface is appropriate in this case.
If multiple interfaces are on the same subet, there must be something to configure things e.g. for policy based routing, load balancing, or similar. The LabVIEW application shouldn'd need to worry about these things.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Is there a way to know which Ethernet port will be used when running TCP Open?

    Hello.
    I have several Ethernet ports in my computer, and I am trying to write a VI that sends data from one port to the other (for debugging an issue).  I was planning on using the TCP Open and other TCP VIs, but the TCP Open does not seem to have an input to tell it which local Ethernet port I want to use.
    So, is it possible to specify which Ethernet port you want your TCP connection to be open on?  How about UDP?
    Thanks,
    AlejandroZ

    The TCP Open does have inputs for specifying both local and remote ports.
    Message Edited by Dennis Knutson on 08-23-2007 09:52 AM
    Attachments:
    TCP Open.PNG ‏11 KB

  • How to specify 2nd network card to TCP open and write?

    TCP-Open does not have an option to choose which network card to use. It only has an open to connection but not an open from connection to enter. Is there anyway to select the second network card instead of letting the computer to choose?

    pwrdesoto wrote:
    Only the TCP-Listen allows the user to choose which network adapter to listen. The TCP-Open is require to open an connection to write to and it only has an input on where to connect to but not which network adapter to connect from.
    tst is completely right. If you have two network cards they usually have different subnets that should not overlap. If the desired target adress belongs to one of those subnets the TCP/IP routing will automatically select the correct network card to bind the connection to. If you use an address outside of those subnets the default gateway will be selected.
    And according to a Microsoft knowledgebase article it is a very bad idea to have more than one default gateway defined in the entire setup. If you do that the default gateway of the default (primary adapter) should be selected automatically but the routing can get really weird sometimes.
    If this is not enough for your routing requirements you will have to manipulate the routing tables manually (and no it is no pretty business to do so). Look  at http://support.microsoft.com/kb/140859 for a starting point about routing table manipulations under Windows NT (still applicable to XP) based systems.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • TCP Open Connection and Error Code 1

    So, I have a client that is supposed to continuously try to connect to a server using TCP Open Connection.vi. When the connection is established, the loop is supposed to exit.
    psuedocode for the loop I have is as follows (similar code, LV 7.1, exhibiting the same problem is attached)
    while (error)
      attempt to open connection
    Pretty simple, right?
    I've had no issues with servers written in LabVIEW, but when attempting to integrate with a server that was written in C, it appeared that the client created multiple connections. I have been able to reproduce this problem by writing a server with Java. The C server was on a remote machine, the Java server on a local. Both see different numbers of additional connections (3 for C, 2 for Java).
    Looking at the error codes, I am getting a bunch of code 56 (timeout, expected) and the ocassional code 1 (unexpected). I have noticed that whenever I have this multiple connection problem, I show an error code 1 right before the valid connection attempt and loop exit. Is there someway that a connection is being established (or partially established), but labVIEW is still returning an error? Is there a better way to verify that a TCP connection was actually successful?
    Here is example output from the attached code, it shows the error codes generated
    56
    56
    56
    1
    56
    56
    56
    56
    56
    56
    56
    1
    56
    56
    56
    56
    56
    56
    56
    1
    Here is output from my Java code
    [2006-05-24 15:43:23.556] - Begin Listening for Connection Attempts
    [2006-05-24 15:43:23.587] - Accepting Connection
    [2006-05-24 15:43:23.603] - Begin Listening for Connection Attempts
    [2006-05-24 15:43:23.603] - Accepting Connection
    Running ServerNIOConnection Thread
    [2006-05-24 15:43:23.603] - Begin Listening for Connection Attempts
    Running ServerNIOConnection Thread
    Thanks,
    Martin
    Message Edited by mmathis2000 on 05-24-2006 05:50 PM
    Attachments:
    Sample Client.vi ‏21 KB

    Hello,
    I’m a little curious why you are setting up your client like
    this.  If it is your objective to just
    have the client wait until a connection is made, why not just have the TCP
    connect VI have timeout value of ‘-1’ meaning “do not timeout”.  This will allow the built-in TCP event
    structure to listen for connections and ‘wake up’ your program when a
    connection is established.  I say this,
    because the error messages seem to be dependant on the timeout values.  For example, wire in 1ms to the timeout and
    see how the messages differ in timeouts as opposed to wiring in “2000” for the
    timeout value.  This is because the
    Connect VI attempts a connection and waits only the specified timeout before
    abandoning that attempt and continuing with another attempt.  I’m betting in your case connecting to the
    server takes longer than your timeout value, so the connection is initiated by
    your LV client, the handshaking takes place, your server indicates that a
    connection is being made, and sometime during this process your timeout expires
    and LV tries the process again thus you see the multiple connections.  Go ahead and try this as an experiment – take
    your VI, and instead of using ‘localhost’ use the IP address of your favorite
    website and change the remote port to port 80. 
    Change the timeout to -1 and wait for the connection, then change the timeout
    to 1 and see all the timeout errors given.
    Hopefully this answers your question, please let me know if
    you have any additional questions or if this is inaccurate/unclear.
    Travis M
    LabVIEW R&D
    National Instruments

  • Tcp open connection problem while parallel tcp communicat​ion

    I have a problem with TCP Open connection while running another TCP transfer.
    While I run the Simple Data Client/Server example (..NI\LabVIEW 2010\examples\comm\TCP.llb) I would like to open another TCP connection according this simple VI attached. This runs on another port than the running Client/Server example. When the address of the PC to be connected to, is known to the network (IP/Name) all is fine, when the address is a name unknown to the network, than a significant delay in the datatransfer of the client/server example occures. Hope that anybody can reproduce/explain this behaviour.
    Network setup here is Gigabit ethernet/ DHCP / Windows XP Prof. SP3/ LV 2010 / LV 8.6.1
    Jörn
    Attachments:
    TCP_Open_blockingproblem.vi ‏16 KB

    I really appreciate your comments,
    to make sure that we do see the same effects let me exactly explain what I see: I open the example vi's : Data Client/Server example (..NI\LabVIEW 2010\examples\comm\TCP.llb. You can open it localy that means on one PC or open one  on another PC. To make it simple for the first try open it localy and run both vi's according the example instructions. On the Data Client.vi I see now the samples updating many times per second (should be every 25 ms, because the server produces these in this intervall). All is like expected. Now open the TCP_Open_blockingproblem.vi from above and let it run unmodified (except you have an PC named 'DataServer0'). What I see now in the Data Client.vi : The samples update came nearly to an halt (this is why I called it 'blocking'). Updates only every 6 seconds (here in my network setup). Now stop the TCP_Open_blockingproblem.vi. The DataClient.vi is running on the same speed as before. Now modify the 'DataServer0' to a pc name existing in your network and start again. This time the sample speed is not degraded. Can you confirm this behaviour ?.
    I did recognise the effect for the first time while I desigend an appliaction  based on the STM library and posted the effects I saw, here : http://forums.ni.com/t5/Components/Simple-TCP-Mess​aging-STM/td-p/583438/page/5. Like Christian Loew supposed there is a bunch of code around. It is a multi tier application receiving TCP traffic on some ports and distributing on others. So I decided to isolate the problem from STM and my own code and came to the simplest code which I thought it was possible where the problem still occures which I described above.
    Your suggestion to lookup the names once in the beginning of the application is a possible way, but I must say with the experience now I am still very uncertain of more unexpected future side effects during lookup, especially on network setups at customersites where I have no direct access. So I decided to give an UDP registration mechanism a try, like it is realised in the STM Examples of HostReceiver.vi and Target Sender.vi.
    Thanks for following so far,
    Jörn

  • Problem with ethernet jack, works fine wirelessley

    I just moved into a new place that has ethernet jacks in each room. I happened to have one right behind the tv stand where the Apple TV is. If I plug the Apple TV into the ethernet jack it disappears out of iTunes.
    If I unplug it and it uses the wireless AEBS Extreme network all works well as far as connecting, but since my place has metal studs the wireless connection has a little too much noise for the best connection, that's why I thought the ethernet jack would be better.
    I know the ethernet jack works fine, I tested it with my MacBook Pro and it works perfectly fine with the ethernet jack.
    Any suggestions on how to use the ethernet jack and keep Apple TV displayed as a device in iTunes?

    Sounds like you have determined the ethernet jack is physically good.
    Are you using fixed IP addresses or DHCP? If you don't use DHCP you may have to enter your IP address, subnet mask, router, and DNS addresses via the settings of AppleTV..
    hth,
    b.

  • Labview: TCp Open Issue!

    Hi Everyone,
        I'm working on a MODBUS routine for communication with one of our control modules. I'm using NI's Modbus library to initiate a connection, check the registers, etc then report the results back to a teststand seq for fruther analysis.
        Problem? I made a few minor adjustments to the library (just the main routine) because i only need to read the registers for now. However, when I conenct with the TCP Open Connection, nothing happens. Well, not completely true.. I sinffed the connection with Ethereal and I get the following errors...
    1)
    SENDING:
    TCP: Src Port 2061, Dst Port: 502, Seq: 13, Ack: 10 , Len:12
    Checksum: 02x282d [incorrect, should be 0xfd6b]
    2)
    RECEIVING:
    Modbus/TCP:
    -Modbus: Function 4: Read input registers. Exception: Illegal data address
    exception code: Illegal data address (2).
    I understand the second one and believe it's related to the first but ....?
    Does anyone have any ideas or suggestions? I'd go into the TCP OPEN.vi if I could, but it wont let me, so...?
    Thanks Again,
    BK

    Hi BK576,
    Does this still give you problems if you don't make your modifications
    to the MODBUS libraries? What changes were made? Could you possibly
    submit an NI-Spy capture taken while seeing this error?
    Regards,
    Matt S.
    LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.

  • Network error : Connection cannot found : TCP Open in J2ME

    Hi all,
    I am using Wireless Toolkit 2.5, when the application tries to connect IIS server, it won't work. the error is:
    IOException javax.microedition.io.ConnectionNotFoundException: TCP open
    javax.microedition.io.ConnectionNotFoundException: TCP open
         at com.sun.midp.io.j2me.socket.Protocol.connect(+99)
         at com.sun.midp.io.ConnectionBaseAdapter.openPrim(+52)
         at com.sun.midp.io.j2me.socket.Protocol.openPrim(+108)
         at com.sun.midp.io.ConnectionBaseAdapter.openPrim(+14)
         at com.sun.midp.io.ConnectionBaseAdapter.openPrim(+8)
         at com.sun.midp.io.j2me.http.Protocol.connect(+73)
         at com.sun.midp.io.j2me.http.Protocol.streamConnect(+57)
         at com.sun.midp.io.j2me.http.Protocol.startRequest(+12)
         at com.sun.midp.io.j2me.http.Protocol.sendRequest(+38)
         at com.sun.midp.io.j2me.http.Protocol.sendRequest(+6)
         at com.sun.midp.io.j2me.http.Protocol.closeOutputStream(+4)
         at com.sun.midp.io.BaseOutputStream.close(+14)
         at HttpInputOutputStreamNet.getGrade(+190)
         at HttpInputOutputStreamNet.startApp(+8)
         at javax.microedition.midlet.MIDletProxy.startApp(+7)
         at com.sun.midp.midlet.Scheduler.schedule(+270)
         at com.sun.midp.main.Main.runLocalClass(+28)
         at com.sun.midp.main.Main.main(+116)
    but, file in localhost and ip address of the server works well, that is url with ip address for the server works but the host name not works. The url's www.something.com and http://www.javacourses.com/hello.txt works fine.
    May anybody help this problem

    Jaime,
    Hay un ejemplo que tenemos en el web que te puede servir. Se llama Reconnect TCP Connection y creo que te puede ayudar en este caso.
    Saludos,
    Nestor S.
    Nestor
    National Instruments

  • Index array problems with tcp open function

    Hello,
    I am using the TCP open function to check if an IP or hostname is online. I do this with an input array specifying the IP/hostname as well as the port. This doesn't seem to work as expected. After using highlight execution I noticed that the port on index 1 gets to the tcp open function after the IP/hostway on index 0 so the tcp open function seems to execute without a port and returns an error. If I set the port as a constant it works fine. Anyone have any ideas how I could fix this? Thank you in advance.
    Attachments:
    iface-detect_online.vi ‏12 KB

    After some more testing I think I am wrong on the assumption that the values are getting there at different times. I think the problem is that the port is a text string and needs to be numeric instead. Is there a way to make index 1 on the array numeric while leaving the hostname a string?
    On edit: after figuring out why this wasn't working I was able to fix this problem by using the decimal string to number function. Thanks to anyone that reviewed this.
    Message Edited by Pawel Kowalski on 09-22-2008 11:12 AM

  • Using SMTP I can not use a mail server with more than 13 characters. I get an error from TCP open

    I have no trouble sending an email if the mail server name is less than 13 characters long. I get an error 54 from TCP open when it exceeds that length. How do I get around this?

    Don't know what to say, I just tried the SMTP email VI I have with an 18-character mail server address and everything worked fine. The error 54 means that the address is ill-formed.
    The only thing I would suggest is trace the mail-server address down through the hierarchy and make sure nothing is done to modify it. Also try putting a probe on the wire going into the TCP open function and make sure the string you see there is the same one you are using. Finally, change the formatting of the control taking the address into the subvi that contains the TCP open function (SMTP Open Session.vi)to show the slash codes and make sure some invisible characters aren't getting added along the way.
    As a last resort save the vi in 6.0 format and send it to me and I'll
    try it on my system--maybe there's something screwy going on with your computer...
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • "javax.microedition.io.ConnectionNotFoundException: TCP open" Exception

    Dear All,
    I get "javax.microedition.io.ConnectionNotFoundException: TCP open" exception in J2ME program written by netbean with WTK2.0.
    I found out the exception got when I submit the URL to internet address (e.g. www.yahoo.com or www.google.com).
    However, the exception does not exist when I submit the URL to the host in intranet (e.g. 10.X.X.X)
    Do anyone of you have similar problem and could teach me how to submit the URL without the exception to internet address.
    Regrads and Thanks,
    Kelvin

    Hmm, try starting the thread from outside the constructor.
      (new Thread(new Connection(ipDb.getNextRecord()))).start(); Probably not the best practice to start threads in constructors. Also, it's highly likely that the device will only do 1 single network connection at a time anyway, even if you use multiple threads. This will be why it locks up the app, because the one internal OS thread that handles all the network IO is blocked, none of the other connection threads can do anything.

  • Tcp open

     "tcp opening"
    i think the address is the  IP for remote computer in dot notation. Is it true?
    How can I know remote port number?

    Dear Ahmed,
    On the listener side you only have to give a port number (or service name), thats why it is called a listener
    On the other side (which includes the TCP Open Connection VI) you should write the same portnumber and the computer's IP adress that has the listener VI.
    (That IP address could be found in the network properties in windows) 
    The portnumber is not a very strictly defined thing, you should find a free port and there you go.
    If you don't know what ports are free to use then please ask!
    Regards,
    Marton
    NI Hungary 
    ps.: just realised that your problem might me that you want to use them on the same computer. Than the story with portnumber is the same, but the IP address of the localhost is 127.0.0.1 , so you should try to connect there. 
    Message Edited by MartonLitkei on 03-03-2009 03:05 PM

  • Ethernet card physical address

    Good morning guru,
    Is it posible using sql to get the information about
    the Ethernet Card Physical Address local computer (network card address) ?
    like : 00-0E-A6-37-BA-25
    mayble something like : select ecard from dual ?
    If no, any idea how can I got it ?
    Thank's

    Simple answer - no.
    Complex answer/response - what on earth for?
    On the server side, you have to crack open the physical network packet header to get to the MAC address of sender. And that is not a simplistic thing to do, and outside the scope of PL/SQL and even Java stored procs.
    Why? Because you need access to the physical packet - which you do not have. In PL/SQL and Java in Oracle, you're already at a fairly abstract level. With a shared server process, your code do not even deal with the network communication side with the client. That is done with by the dispatcher processes. So even if you could somehow hack the data segment of your physical Oracle process running your PL/SQL or Java code, the socket and packet data are not there to be found.
    Which begs the question why do you want to use it? It is pretty meaningless higher up is the OSI stack. And your code is running in topmost layer, layer - the application layer. Layer 6 does not show your layer, the MAC address.
    So the reasoning for wanting the MAC address need to be closely re-examined - as the "solution" for that requirement, using the MAC address, is likely a very much flawed solution.

  • I do not see where to enter IP addresses in the Open VPN setup. Also, how can I set it up so that I can choose different servers in the same way as I can currently choose them with my VPN app but for PPTP?

    I think I have it working on my iPhone 5. But, I do not see how I can control the exit point that I would like for the VPN. Are all the exit points shown in the VPN setting now going to work with Open VPN, or do they remain PPTP? If I am reading correctly, they look like they remain PPTP. If I cannot control the exit point for open VPN, which exit point is the default in the profile you provided me?I note that Open VPN Connect does not work with any of the new 64 bit devices like the iPhone 5S, the iPad Air, and the new iPad MIni. Is there any chance that you guys will come up with an update for your app so that open VPN can be made to work on all iOS devices? That would be nice, particularly if the Open VPN Connect app does not give me a choice of exit points.Thanks,
    I do not see where to enter IP addresses in the Open VPN setup. Also, how can I set it up so that I can choose different servers in the same way as I can currently choose them with my VPN app but for PPTP?
    Just a quick note to tell you that Open VPN has updated their app so that it is compatible with 64 bit ARM devices like the iPhone 5S, the iPad Air, and the iPad Mini Retina.That does not resolve the problem of how to easily choose among the various possibilities for the exit server. We need to find an easy way to choose.

    Thank you for trying the new Firefox. I'm sorry that you’re unhappy with the new design.
    I understand your frustration and surprise at the removal of these features but I can't undo these changes. I'm just a support volunteer and I do not work for Mozilla. But you can send any feedback about these changes to http://input.mozilla.org/feedback. Firefox developers collect data submitted through there then present it at the weekly Firefox meeting
    I recommend you try to adjust to 29 and see if you can't make it work for you before you downgrade to a less secure and soon outdated version of Firefox.
    Here are a few suggestions for restoring the old design. I hope you’ll find one that works for you:
    *Use the [https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer/ Classic Theme Restorer] to bring back the old design. Learn more here: [[How to make the new Firefox look like the old Firefox]]
    *Use the [https://addons.mozilla.org/en-US/firefox/addon/the-addon-bar/ Add-on Bar Restored] to bring back the add-on bar. Learn more here: [[What happened to the Add-on Bar?]]

  • When opening a new window, it automatically loads last pop-up (?) content and I am unable to type in address bar or open a new tab in the new window.

    I don't know if they're technically pop-up windows (for example, if you do a search on kayak.com, it will automatically open a new priceline.com window with the results of the search), but this happens with pop-up blocker on or off. Other examples are a small info window from a financial or .edu site that opens up saying a session is about to expire, or answering an FAQ (with the exception of the priceline example, these windows don't have an address bar or display a URL). Anyway, after these windows are closed, if I try to open a new window, it will automatically load the content of that "pop-up". Whenever it does this, I am unable to type in the address bar or open a new tab in that window.
    How do I fix this? All I want is to open a new window that's blank, not load prior content.

    It could be the work of one of your add-ons, or even add / mal-ware.
    Look thru your add-ons list and make sure you know what each one is
    there for. Also, check the programs that are on your computer
    '''Windows > Start > Control Panel > Uninstall Programs.'''
    '''(Mac: Open the "Applications" folder)'''
    Go thru the list and use a web search to check any that you don't
    know what they are.
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-caused-malware Troubleshoot Firefox Issues Caused By Malware]''''' {web link}

Maybe you are looking for

  • Resetting PRAM with new aluminum keyboard

    I just updated the firmware to my aluminum keyboard via Software Update. I still cannot reset the PRAM by the old tried-and-true method of holding down command, option, PR. Lately resetting the PRAM has been needed. Anyone have any idea on how to do

  • Rmi problem

    Hello, I am working with melilta and amilcare both written in java. My problem is when I try to run the melitaserver it shows the error message: "Melita startup script Using AMILCARE_HOME: "." "D:\j2sdk\bin\java" -Xmx200M -Djava.library.path=./runtim

  • Can I change my computer name?

    Hello all, I just replaced my Power G5 with a Mac Pro, however, the computer name of the new Mac Pro is quite too long, therefore I am thinking to change it. I have not set up the network connection yet with my other computers at home. Do I have any

  • Does Mac osx 10.8.2 support FDE SSD drive on early 2011 MBP?

    Hi mates, I need to secure all my datas in my MBP i5 early 2011 model. Thinking of changing the harddisk to a new Samsung 840 Pro series that come with the FDE feature. Will I be able to use the FDE feature on the SSD that comes along? Thanks!

  • Swf's/flash,banners When Importing Into Dreamweaver Put Out Slices..

    Hi guys/gals I think im doing it wrong or missing something, even have a funny feeling i might have to use some css? Not really sure. My problem is after i have saved my move,banner - when imported into dreamweaver it puts all the slices out of whack