473,406 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

GetIPFromHostName(ByVal sHostName As String) returns empty string?

Hi,
I guess this question is directed at Randy Birch, but as I haven't the
money to go help him move and clean up his house, I guess I don't have
the right to ask him directly... so here goes.

I'm using a chunk of his functions to resolve Hostnames into IP
addresses and MAC addresses and the like... all of it works fine -
except this function, and I have no idea why... Of course, you'll
probably tell me to kindly put the light sabre down until I'm a real
Jedi... but I don't think that's gonna happen - I'll never be a Jedi.

when I call this:

GetIPFromHostName(ByVal sHostName As String) As String

?GetIPFromHostName("Argentina")
?GetHostNameFromIP("10.0.0.83")
ARGENTINA

I get no value returned.

Am I just missing something? If so, could some kind soul clue me
in... I'd *really* much rather spend my time doing something useful
than walking around to each computer in the agency (all 100 or so of
them) and writing down stupid stuff I can tell the computer to do...

Thanks!
Pieter
Jul 17 '05 #1
0 2183

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rimu Atkinson | last post by:
hi all i use FindControl to get a textbox, and i get a textbox object, but it's ..Text property is empty. some background info: i have a DataList, which has a template column in it, and in...
2
by: Phil Galey | last post by:
I created a VB.NET application, together with an associated installation project, and in the installation project I specified the ProductName. But when I run the application, if I try to retrieve...
0
by: JP | last post by:
Hi, I did set the assembly attribute: <Assembly: AssemblyProduct("Verzorgingsplaatsen")> but when I call Application.Productname it returns an empty string. What's wrong? JP
2
by: Von Shean | last post by:
I use the following code to format the numbers to have commas. But in case when input is zero it returns an empty string....any ideas? String.Format("{0:#,###.##}",dblNum);
0
by: kurt sune | last post by:
I have written a Custom Validator. However the ServerValidate(ByVal source As Object, ByVal args As ServerValidateEventArgs): sub gets called twice. First with an empty args-argument, secondly...
3
by: RMB | last post by:
Environment: FW 1.x VB.net When making a call to MainWindowTitle from a windows service an empty string is returned. All of the application processes being checked have UI with titles. If I...
6
by: Michi Henning | last post by:
I'm running the following code in Safari 2.0.4: document.cookie = 'MyCookie=1'; if(document.cookie == '') alert('document.cookie is empty!'); document.cookie always returns the empty string,...
3
by: Renilkumar | last post by:
I have a datagrid using link button. I am setting the CommandArgument value as .. <asp:linkbutton runat="server" EnableViewState=True CommandArgument='<%#...
3
by: comp.lang.php | last post by:
PHP 5.2.0 when using mime_content_type("/path/to/my/video.avi") I get an empty string every time When I am supposed to get video/x-msvideo
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.