How to determine if 2 IPs are on the same subnet

Hi all!

I have a Client/Server connection over a network, and I wants to determine if they are part of the same subnet.

The server is installed on one OR cFP-2220, so I can't use all the exec system commands to access network settings.

My code is so far simply determine if the client and server are both on the local host.

Please see attachment!

Concerning

Paul

Hello!

Thanks for the reply.

After a google search, I think it is the right way to do it: (Ref)

XOR (B and H) (M & a)

Thank you to direct me in the right direction!

Kind regards

Paul

Tags: NI Software

Similar Questions

  • [Win7] How routing metric is determined when wired and connected to the same subnet and enabled both wireless adapter

    We have one under the Network Setup:

    1 Win 7 laptop with the wireless and wired adatper1 card1 enabled and connected to the 192.168.1.0 network.

    WLA1 - 192.168.1.2

    WA1 - 192.168.1.3

    2 Win 7 laptop with the wireless and wired adatper2 card2 enabled and connected to the 192.168.1.0 network.

    WLA2 - 192.168.1.4

    WA2 - 192.168.1.5

    WLA1 and WLA2 are connected by a wireless access point.

    WA1 and WA2 are connected via L2 switch.

    Every time we ping from laptop1 to 192.168.1.4, need the wireless path.

    Similarly, when we ping from laptop1 to 192.168.1.5 only need to access wired road.

    In addition, if we disable WLA1 in laptop1 and laptop1 192.168.1.4 ping, ping does not occur and ping is successful only if the wireless network adapter is enabled. It does not take the cable path.

    I just sub questions:

    -On what basis the route is chosen correctly?

    -Can we expect this happens all the time or roads can vary according to certain parameters?

    -Why it only takes the path wired when we ping from laptop1 to 192.168.1.4 after having turned off the WLA1.

    RB

    You will get a more definitive answer on metrics on Technet

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.msdn.Microsoft.com/forums/en-us/home

  • My computer with two hard drives and 2 starting systems has the car crash in the solid state. When I got the new drive and tried to restore from time capsule, I lost some data. How can I see what backups are on the time capsule? My laptop is also backed u

    My computer with two hard drives and 2 starting systems has the car crash in the solid state. When I got the new drive and tried to restore from time capsule, I lost some data. How can I see what backups are on the time capsule? My laptop is also saved to the time capsule. Everything is in 'Data' when I look through the Airport utility. I think that the information that I've lost are still there since I was a Capsule 3 to.

    Time Machine backup to a sparsebundle.

    The sparsebundle will use the share name of computer. So, it should be obvious who is your Macbook and that is your Macpro.

    Open the sparsebundle in Finder and keep open the subfolders until you get to the backup of each separate hard drive...

    You has of course set the exclusion in Time Machine?

    By default, Time Machine will exclude your second drive unless you have included it. Did you?

    Once you get to this level during the backup, you can do a full restore manually whenever you want.

  • Separators from decimals/mile are not the same for the number and format of thousands. How can I get even. ?

    I installed the version 11 of Pastel partner and the error message "separators from decimals/thaousand for number and currency formats are not the same" how to get this right?

    Pastel partner support site through and their instructions/FAQ

  • I'm on Windows 10. A works fine until the update. How can I make Adobe Acrobat Reader (free verision) my default DC? Seems that the default value is E pdf and when I change the default in the flashes of screen reader and forms are in the same format. I ha

    I'm on Windows 10. A works fine until the update. How can I make Adobe Acrobat Reader (free verision) my default DC? Seems that the default value is E pdf and when I change the default in the flashes of screen reader and forms are in the same format. I rather Acrobat format if possible. Thank you

    Hello

    Could a right click on the PDF file > open with > choose program by default and select CD player as default PDF Viewer.

    You can do it from the control panel as well.

    This would make CD player as default PDF Viewer.

    Concerning

    Sukrit diallo

  • I have 6 buttons on the navigation bar that point to 6 different pages - the buttons are all the same color - if I am currently on [say] page 3-How can I me key menu 3 to change color and state that I am on page 3?

    I have 6 buttons on the navigation bar that point to 6 different pages - the buttons are all the same color - if I am currently on [say] page 3-How can I me key menu 3 to change color and state that I am on page 3?   using DreamWeaver CC

    Among the contributors here has a nice page explaining how to do what you want, using css.

    Indicator of persisting in the Menus - Page http://alt-web.com/

  • How can I register several OCX files at the same time

    How can I register several OCX files at the same time. OCX depending on the application files are stored in a network location, IE. R:\HR\whatever\whatever\*. OCX instead of manually record each ocx file, I would be with a simple batch file or an automated script. Anyone have any good ideas?

    Hi James,

    The Microsoft Answers community focuses on the context of use. Please join the professional community of COMPUTING in following the link MSDN forum

    http://social.msdn.Microsoft.com/forums/en-us/categories

  • Apex 5, call a modal page, set page elements, in values referenced title page elements are not the same (correct) than the item itself

    Hello

    Apex 5.

    IR (departments) on page 2 I want to open a modal page 3 (classic report) with the detail data (from emp) for a Masters depno via a link on depno column.
    In Page 3, I created two elements P3_DEPNO and P3_DNAME. These elements are defined in modal page 3 of page 2.
    When I do these two visible elements on page 3 I can see, the values are set correct according to the value in column (depno) link on page 2.
    However, I would like to place these element values in the page title of page 3
    Title: PGE for DepNo: & P3_DEPNO., DepName: & P3_DNAME.

    It happens that the values mentioned in the title of the page are not the same (good) as in the items himself.
    Initially, they are NULL. Only when I refresh page 2 the values change but remain the same (last called depno) as long as I'm doing a new refresh of page 2.

    I wonder how I can run to display the values of the correct point in the title of the page corresponding to the values of the correct page element (that I have hidden).

    Y at - it something more to do, or it could be a small bug?

    I've created a little demo app on
    https://Apex.Oracle.com/pls/Apex/f?p=75955:2

    WS: AMLWS001

    Demo/demo (developer is)

    Please see the report 1.

    Thank you in advance!

    André

    Hi andremi,

    andreml wrote:

    Hello

    Apex 5.

    IR (departments) on page 2 I want to open a modal page 3 (classic report) with the detail data (from emp) for a Masters depno via a link on depno column.
    In Page 3, I created two elements P3_DEPNO and P3_DNAME. These elements are defined in modal page 3 of page 2.
    When I do these two visible elements on page 3 I can see, the values are set correct according to the value in column (depno) link on page 2.
    However, I would like to place these element values in the page title of page 3
    Title: PGE for DepNo: & P3_DEPNO, DepName: & P3_DNAME.

    It happens that the values mentioned in the title of the page are not the same (good) as in the items himself.
    Initially, they are NULL. Only when I refresh page 2 the values change but remain the same (last called depno) as long as I'm doing a new refresh of page 2.

    I wonder how I can make it work to display the values of the correct point in the title of the page corresponding to the values point right page (what I have hidden).

    Y at - it something more to do, or it could be a small bug?

    Page title is rendered before the page elements, that is why is not highlighted in your title.

    I don't think directly, we can use the page as a page element value.

    Creates a copy of yours and made the change it new App id - 45390

    There, I created a static area without a model before your report area and put your article into that.

    then displayed title PGE for DepNo: & P3_DEPNO, DepName: & P3_DNAME. for the area of your report.

    Kind regards

    Jitendra

  • How can I combine two PDF files on the same page?

    How can I combine two PDF files on the same page? Please share any ideas you may have. Thank you.

    The term for what you want to do is called "page imposition.  There are third party tools that can do it for you like this: quite large: home page

  • drop table left-right scale of the value axis are not the same scale

    http://img20.imageshack.us/img20/6264/questionk.PNG

    the scale of the axis left and right are not the same.

    How to configure?

    Thank you very much!

    Hello

    Try this
    Chart, Goto Advanced properties-> check the line sync and the axis of the bar
    This will make the two scale of identical values.

    Thank you
    Vino

  • Can I copy my bookmarks from Safari to Firefox if they are on the same computer?

    I would like to use Firefox and I want to copy the Favorites I have in Safari. I have a Mac with OS10.6 and the Safari and Firefox are on the same computer. I want to know if Firefox is friendlier, since I do a lot of writing.

    You need to update Firefox 6.0.1 via help > topic > check updates
    before trial rather than being disappointed with an updated Firefox after the test.

    All browsers can use the Netscape bookmarks to HTML file to copy the Favorites. But according to the documentation, you can import directly from Safari. I hope that this applies to your Mac, because it does not appear as an option for me on Windows 7.

    Import bookmarks - MozillaZine Knowledge Base

    "Firefox is important Safari settings automatically. Just go to file > import... and select Safari. In the next window, check the boxes that you want to import. For example, bookmark Safari will appear in the bookmarks menu to Firefox as "Safari". Whatever other bookmarks you had on your Safari bookmarks bar will automatically appear on your Firefox bookmarks bar, too. "

    If this does not work:

    Export bookmarks in Safari: (from Safari Help)
    1. Choose file > export bookmarks.
    2. Specify a location for the exported file. The file name will be "Safari bookmarks.html." Most browsers are able to import this type of file.

    Import of bookmarks in Firefox:

    1. "Command-SHIFT-B' to display the list of bookmarks library, can be done in the bookmarks menu >"show all bookmarks ".
    2. "Import and backup" menu > import HTML > HTML file
      (unless you see Safari)

    Firefox uses the same keyboard shortcut to display such menus used on Safari (on a PC, it's the 'Alt' key).

    Firefox is highly customizable so you can change the appearance, and a lot of what we would do in other browsers must be done using extensions in Firefox, but the extensions for the 'same' function probably give you much more functionality and control. The look of Firefox by following more like 3.6 would be interesting if you're used to other older browsers - Safari grew up independently for other browsers are more similar.

    You can make Firefox 6.0.1 look to Firefox 3.6. *, see numbered items 1-10 of the next topic difficulty Firefox 4.0 UI toolbar, problems (make Firefox 4.0 to 8.0, resemble 3.6). If you make changes, you must be aware of what has changed and what it takes to use changed or missing features.

    It is much more beyond these first 10 steps in the list, if you want to make Firefox more functional. (later on)

    Keyboard shortcuts:

  • We have 2 phones and 2 computers and they all sound when the phone rings. How to change that? they all use the same apple ID

    We have 2 phones and 2 computers and they all sound when the phone rings. How to change that? they all use the same apple - ID we buy apps and music coming from the same account. It all works very well, but we don t like any other device to RING eveytime a phone rings.

    Thank you so much: D

    ON both phones, check the settings > phone > call on other devices > Off.

  • My wife and I have iPhone 5 s, the two rings at the same time while we are at home when one of us Gets a call. They are on the same account, is there a way to stop this without establishing separate accounts?

    My wife and I have iPhone 5 s, the two rings at the same time while we are at home when one of us Gets a call. They are on the same account, is there a way to stop this without establishing separate accounts?

    settings - phone - call another device - off.

    One of you should get their own apple ID, you just go to have problems later.

  • Variation of thermocouples (+ - 2 ° C) and are under the same conditions

    Hi, my English is not the best but I trust in your intuition and intelligence capacity.

    Actually Im connecting many thermocouples (type J) in a DAQ 9213. I managed to take all measures (7 thermocouples) and also the thermocouples are calibrated. My problem is that the 3 thermocuples give me one 20 ° c (60F) and the other 4 give me 22 ° c = 71.6 ° F, and all the thermocouples are under the same environmental conditions.  The easy solution is to put an offset and compensate for the error but it is not a good solution.

    Can someone tell me what is happening? I think it's wiring problem maybe the COM, but I've referenced the negative signal (low signal) to the COM, also tried not to referencing the negative signals to the commune, but the result is worse because the signals are going crazy.

    Please help me, please!

    Hi Jesus Hernandez

    Also remember that the thermocouples have a positive and a negative side, so if you plug wrong temperature will be different and it will decrease rather than increase when something warmer so close.

    Best regards

    Julio Mena

  • Can someone explain why these two paintings 'look' different even if they are from the same source?

    Hi all!

    I'm just curious, why these two tables are different and are they really different in terms of structure, even if they are from the same source? The left is the exit of tdms get properties and the other is a power of arry auto indexed.

    Nilesh-

    No doubt, you are referring to the visual aspect, since the data are the same. One of them uses a different type of indicator of the chain. You probably click right and choose 'create-> Indicator '. When you perform this LabVIEW will use the same style of indicator as what sub-VI/uses. In case you made directly from the PDM function, but the other was created between the autoindex loop tunnel for, in the second he used everything that was default in your preferences.

Maybe you are looking for

  • Re: Recovery of Tecra T9100 discs

    Mr President.IM ndiaye of cochin. My cd of drivers for your laptop's model number missing.my cell phone was THOSHIBA T9100. Please help me. THOSHIBA T9100MODELNO:PT910E - 5XQ1N-G3SERIES NO.53884386GTHOSHIBA EUROPE GMBH

  • X 1 carbon Gen 4 sleeves

    I just bought a new X 1 carbon (Gen 4) and I'm looking for a sleeve for her. I took the carbon especially because it's so light and small, but unfortunately the official corresponding to the size of the socket of Lenovo (X 1 Ultra socket) is large en

  • Toshiba Configfree on Satellite A200 and bluetooth

    Dear Sirs, The device internal bluetooth on toshiba satellite A200 does not correctly detecting the other bluetooth device, such as the bluetooth on the pc desktop adapter. On the other hand the toshiba configfree said that while on the notebook's wi

  • Satellite P200-13Z - how to make webcam work?

    Help, please.I've had this machine for 2 months and cannot find out how to make the webcam works.I've been in Device Manager that says that the cam doesn't work and I have the right drivers. What should I do now?

  • SoftMotion and FPGA OR 9514

    Hey Gang, I spent the day to set up a new system of cRIO and a new installation of LV2012 RT and FPGA Softmotion. Our system uses a CAN interface, which, we learn, requires the use of FPGA mode.  Maybe this isn't a bad thing, because we are concerned