How does the ping command get the IP address?

I am running Windows 7 and when I do a ping command using a host name, the ping command works fine and returns the correct IPV4 address and is able to send and receive data using that address.
On the other hand, if I write my own program and use either GetAddrInfo or GetAddrInfoEx. neither of them give me the result I expect. GetAddrInfo fails with a host not found error and GetAddrInfoEx gives me back a return code of zero, but the ai_addr field
of the returned structure is garbage.
Do any of you out there know how ping does it? Because if ping can do it, I should be able to also.
Sid Schipper GA/RSG/Network Engineering Software Developer

Never mind! The question came about because of my stupidity. GetAddrInfoEx was returning the correct IP address, but it was being returned as a double-byte character string and I was interpreting it as a single-byte character string, Oops!, my bad!, sorry
to bother all of you and Thank you for your responses.
Sid Schipper GA/RSG/Network Engineering Software Developer

Similar Messages

  • How does one go about getting the Kit Kat upgrade?

    I've searched the Verizon site ad I can't find how to download it.  Must one be selected?

    Thanks for your reply.  I went to Settings and About Phone, however, there was a "System updates"  that showed a history and a "Check for new software update" key.  I tried that and it returned with Your phone is up to date.  I guess I'll have to wait for Verizon to send me an update.
           From: clydefrog4963 <[email protected]>
    To: John Manning <[email protected]>
    Sent: Sunday, December 7, 2014 5:20 PM
    Subject:  - How does one go about getting the Kit Kat upgrade?
    #yiv6222900142 img
    |  
    |
      | 
    A message from the Verizon Wireless Community
      |
    |   |
    How does one go about getting the Kit Kat upgrade?
    created by clydefrog4963 in Samsung Galaxy Note 3 - View the full discussionVerizon has started pushing the 4.4.4 KitKat update on the Note 3, I got mine today. It poppped up when connected to my computer on Kies but you can do it on your phone by going to settings, all the way to "about phone" at the bottom, then click on "software update." Its best to do this while connected to wifi, and make sure your phone is at least half charged. Reply to this message by replying to this email -or- go to the message on Verizon Wireless Community Start a new discussion in Samsung Galaxy Note 3 by email or at Verizon Wireless Community


    © 2014 Verizon Wireless
    Verizon Wireless
    One Verizon Way
    Mail Code: 180WVB
    Basking Ridge, NJ 07920
    Not interested in these emails anymore, or want to change how often they come? Update your email preferences by visiting https://community.verizonwireless.com/user-preferences!input.jspa.
      |
    We respect your privacy. Please review our privacy policy for more information
    about click activity with Verizon Wireless and links included in this email.
      |

    |

  • How does it cost to get the disk drive fixed on a macbook pro?

    How much does it cost to get the disk drive on a macbook pro fixed?

    It depends on who fixes it. Assuming that the drive needs to be replaced, you could have Apple do it (most expensive), a local computer repair shop (less expensive) or do-it-yourself (least expensive).
    There's really no 'fixing' a hard drive - it either works or it doesn't. What leads you to believe that your drive needed repair (or replacement)?
    Clinton

  • How does WebLogic 8.1 get the BASE HREF value?

    We have a WebLogic 8.1 SP4 server with a Juniper DX load balancer in front. We are trying to get Juniper to handle all the SSL traffic for the WebLogic application. Between Juniper and WebLogic, it would be just HTTP and between Juniper and web clients it would be HTTPS. One of the main issues we are seeing is that Struts HTML:BASE tag is returning the Juniper address as we expected, with the correct SSL port and application context/paths. However, the protocol for this base href is set to HTTP and not HTTPS. Consequently, our pages do not load properly.
    I am trying to understand where this value comes from. The underlying code uses request.getScheme() to get the protocol. So, we could "customize" the tags to work around this, but that is a hack that I am trying to avoid. I assume that the HTTP stack that WebLogic 8.1 uses is providing this info from the HTTP request. Does this come from the web browser? How does WebLogic get this to put it into the request object in the web container? We have sniffed the HTTP headers on the web client side and we cannot see where this is coming from.

    I remember facing a similar issue with webloigc 8.1 and apache
    I dont think its a problem with the tag..
    I think i have changed the transport-guarantee in web.xml
    If you have NONE try setting that to CONFIDENTIAL and vice versa

  • HT5467 How does my iOs6 iPad get the location services data from my personal WiFi net?

    How does Apple determine my current location of my iPad WiFi only by the location of the WiFi net (my house net)? How is the location of my private WiFi net sent to the Apple Database? Is the information obtained from the router?

    The location information comes from GPS equipped devices like iPhones seeing your router and it's MAC address and sending the router location to Apple for inclusion in their database of router locations.

  • I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?

    I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?

    Well the error message is in Swedish but says: The installation program database is damaged. Please contact the Adobe support (which is a hard thing to do!!). I use Windows 7 Home Premium with service pack 1.
    Från: Mylenium 
    Skickat: den 29 december 2014 16:48
    Till: Tony Bohman
    Ämne:  I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?
    I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?
    created by Mylenium <https://forums.adobe.com/people/Mylenium>  in Downloading, Installing, Setting Up - View the full discussion <https://forums.adobe.com/message/7050595#7050595>

  • How much does it cost to get the album artwork for albums I already have?

    How much does it cost to get the album artwork for albums I already have?

    here are the costs for a new battery:
    The costs for a new MBP are substantially higher than a battery.
    Ciao.

  • How long does it take to get the upgrade code for mountain lion?

    after submitting the online form how long does it take to get the code emailed from Apple?

    sent a complain at around 9:30 PM (PH time) and got a reply at around 11PM. Got the code at around 1PM today.

  • How long does it take to get the result of hands-on-course test?

    Hi:
    I passed 1Z0-043 and submitted hands-on-course.
    How long does it take to get the result? And how long does it take to get the certificate?
    Another question:
    Is there any place you can search for OCPs?, just to check those people who have fake certificates.
    Saad,

    S.Nayef wrote:
    Hi:
    I passed 1Z0-043 and submitted hands-on-course.Congratulations!
    How long does it take to get the result? And how long does it take to get the certificate?Submitting hands-on-course should take 2-3 weeks. After that, you'll wait approximately 1 month to get certificatre
    Another question:
    Is there any place you can search for OCPs?, just to check those people who have fake certificates.NO there's not
    >
    Saad,

  • How Long Does It Take to Get the Crossgrade Replacement CDs?

    Hello--
    We bought Final Cut Studio before we purchased our new Mac Pro. We filled out the paperwork and mailed it in with the CDs, etc. from the program to get universal binary version.
    We have some video projects right now, and just wondered if anyone has any experience with how long it takes to get the replacement CDs for the Intel based Mac Pro? We are in the west coast of CA, in the US.
    Many thanks,
    sd

    Hey Robert,
    You know why, they get shipped from Singapore (or at least ours did). I sent off two FCP Studios for crossgrade and one standalone FCP5 for upgrade, and it took about 2 weeks for the crossgrades to get back last week, and as of this moment we're still awaiting the upgrade. A little odd as they were posted together, but upon chasing it up, I've been told they "are in the process of processing it". Hopefully it won't be too long, because I want to update all systems between projects next week.

  • How do I turn off the alt scroll zoom?  When I'm in Adobe photoshop and illustrator using the pen tool, alt is utilized for another short cut.  I would like to use the alt command for the pen tool instead of zooming into the screen.

    How do I turn off the alt scroll zoom? 
    When I'm in Adobe photoshop and illustrator using the pen tool, alt is utilized for another short cut.  I would like to use the alt command for the pen tool instead of zooming into the screen.

    I tend to select things from left to right and every time I am moving in a downward right diagonal motion during lasso selection I am missing a clear view and I am tending to have a more sloppy selection.  All this does is slow me down since I need to go back and hit those areas again.  The big arrowhead just get's in the way.  The original lasso tool with the thin line and small active point at it's lower left was far better for me.
    I don't like turning the cursors to precise because I like to see the active tool icon where my cursor is and as the icon changes as I hold modifier keys down.  If I am forced to get comfortable with using pricise cursors I guess I will, but man, I've never had to do this in my 15 years of photoshop use...
    I would absolutely LOVE to find a way to get the old lasso icon -- without the arrowhead above it.
    Is there any chance this option could be inlcuded in cursor preferences?  I'd give much thanks, Adobe.

  • How do I go about getting the product serial number to register my product as well as install my product.  I bought it with a product box.  On the software disc sleeve, there is a series of numbers pasted at the bottom of the sleeves but this is not valid

    How do I go about getting the product serial number to register my product as well as install my product.  I bought it with a product box.  On the software disc sleeve, there is a series of numbers pasted at the bottom of the sleeves but this is not valid.  When I tried to type this in for registration, it does register as this numbers also contain letters in it.  Apparently the registration boxes accept numbers only.  What do I do with a useless product for which I have paid good money for it?????

    This is the simple solution which was offered to me when I tried to get the serial code on line.
    The box and disc sleeve do not contain a series with 24 numbers which I presume is the product code to install.
    I tried to redeem the registration code by following what they recommended, but inevitably it gets to the page that showed the registration boxes that need 24 serial numbers and I got stuck again.
    This product is so different what my previous experiences of other software products where I just enter the serial number straight from the disc sleeve and then I got registered and go on to use the software.
    I is really frustrating, spending the last two hours trying to get my product going....

  • How do I resolve: "Could not complete the Crop command because the file is not compatible with this version of Photoshop" error message?

    Photoshop document created in current version of PSCC2014, now will not crop, resize, etc without throwing compatibility error.
    "Could not complete the Crop command because the file is not compatible with this version of Photoshop."
    How do I resolve without recreating the file?

    Ooops.  Hit save reply prematurely. 
    You may be able to open the flattened composite or the embedded JPEG preview of your file in Adobe Illustrator, GraphicConverter (Mac only) or some such application, but your layers will be gone.
    The problem of working across a network is that it's not supported by Adobe:
    This is the boilerplate text often used in connection to saving to a network (please NOTE the part where it explains that normally, it does work, but that it is impossible to troubleshoot someone else's network remotely, and that's why it's not supported by Adobe):
    If you are opening files over a network or saving them to a network server, please cease and desist immediately in the event you are currently experiencing problems with one or more files. Working across a network is not supported.
    See: 
    http://kb2.adobe.com/cps/406/kb406793.html
      Copy the CLOSED file from your server to your local hard disk, work on it, save it again to your local hard disk, close it, and copy the closed file back to the server.
         Of course, the fact that Adobe does not support working across a network does not necessarily mean it won't work.   It should.
        Adobe's position is that there are too many variables in a network environment for them to guarantee that everything will work correctly in every network, especially given the fact that if something does not work properly, it's probably the network's fault, and Adobe has no way of troubleshooting your network.
      If you can't work locally, you are on your own, and if something happens, you're on your own. If you must work from a server, make sure your network administrator is a competent professional.
    When problems arise, a lot of valuable work can be lost.

  • When I try to paste an CCI file into  a PSD, I get this message-   Could not complete the Paste command because the ICC profile is invalid. I need the layer to be an editable smart object! What's the solution?  Ron

    When I try to paste an CCI file into  a PSD, I get this message…   Could not complete the Paste command because the ICC profile is invalid.
    I need the layer to be an editable smart object! What's the solution?
    Ron

    I received the file from my client. However, last week I had no trouble pasting the same file into a PSD file, as a smart object.
    The color file is a label mechanical, which I place into a PSD file of the product. These are used for print ads and web graphics. The color is very critical and has worked really well for the last 4 years.
    I have used the default color settings in Creative Suite and its been working fine. They are in synch and, I have no idea how to re-assign the color profile. I’m a graphic Designer, color correction is not something I would do normally.
    Ron

  • How can i do to get the picture on the projector?

    When i connect my macbook with an vga adapter to my projector it does not work. The projector is saying: no signal. How can i do to get the picture on the projektor?
    Thanks

    Hi axel559,
    Try connecting the MBP to the projector with the projector on, then boot the MBP, if it does not detect the projector, go to system perferences>displays>click detect displays. You might then have to adjust the resolution to have a correct image, usually 1024X768.
    Hope this helps.

Maybe you are looking for

  • Autoclearing for GL line items

    Hi All, I am trying to clear line items from the GL accounts which are having different Profit center & different Material with same assignment field for that i have changed the rule for Document clearing, i have just mentioned field  ZUONR for clear

  • Very urgent:To find IDOC list in RSMO(BI 7.0)

    Hi all,            Its very urgent to know,for a particular load IDOCs used to run to process the data&dialogs,in 3.5 we used to get the IDOCs list in RSMO screen itself,but in 7.0 is not having that options,please tell me for a particular load where

  • Error when converting form to XML

    I get this error when trying to convert a form using this method: frmf2xml.bat OVERWRITE=YES AvaAcPt.fmb Oracle Forms 10.1.2 Forms to XML Tool Copyright(c) 2001, 2005, Oracle. All rights reserved. Processing module AvaAcPt.fmb WARNING: Invalid value

  • Self assigned ip may not be able to connect?

    hello. I have an ibook g4 1ghz 1gram osx10.5.5. I purchased a wifi usb adapter with antenna from hawking technologies. I have attempted dozens of times to connect to any number of wireless networks that it detects. I have established connections with

  • HT1338 intel core duo / can't migrate to icloud?

    Hi.  I would like some help in clarifying please.  I have an older Macbook with an Intel Core Duo running Snow Leopard.  I can't upgrade to Lion.  I have used my .mac account/Mobileme for years primarily for email purposes, idisk, and the gallery (I