Hi Folks,
I wrote an app to scan our Packet Filter logs for certain IPs. It uses
GetHostByAddres s().
I used multi-threading to get around the 2 second hang. The remaining
problem is that
GetHostByAddres s() also attempts to resolve the machine name via NetBIOS.
After
running the application, the blocked packets to port 137 from our own IP are
added
to the logs. How can I avoid this?
BTW, a free copy is here: http://nikola.com/freebies.htm
Regards,
-
Robert 3 4023
Try to disable NetBIOS over TCP/IP in the WINS settings for the interface(s)
to see if that helps.
--
William Stacey, MVP
"RZ" <rz@inv.invalid > wrote in message
news:Ou******** ******@tk2msftn gp13.phx.gbl... Hi Folks,
I wrote an app to scan our Packet Filter logs for certain IPs. It uses GetHostByAddres s(). I used multi-threading to get around the 2 second hang. The remaining problem is that GetHostByAddres s() also attempts to resolve the machine name via NetBIOS. After running the application, the blocked packets to port 137 from our own IP
are added to the logs. How can I avoid this?
BTW, a free copy is here: http://nikola.com/freebies.htm
Regards, - Robert
It was already disabled. I used threading and kill the process after a
short delay.
"William Stacey" <st***********@ mvps.org> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. Try to disable NetBIOS over TCP/IP in the WINS settings for the
interface(s) to see if that helps.
-- William Stacey, MVP
"RZ" <rz@inv.invalid > wrote in message news:Ou******** ******@tk2msftn gp13.phx.gbl... Hi Folks,
I wrote an app to scan our Packet Filter logs for certain IPs. It uses GetHostByAddres s(). I used multi-threading to get around the 2 second hang. The remaining problem is that GetHostByAddres s() also attempts to resolve the machine name via
NetBIOS. After running the application, the blocked packets to port 137 from our own IP are added to the logs. How can I avoid this?
BTW, a free copy is here: http://nikola.com/freebies.htm
Regards, - Robert
Interesting approach. Was it disabled on all interfaces?
--
William Stacey, MVP
"rz" <rz@inv.invalid > wrote in message
news:uM******** ******@TK2MSFTN GP12.phx.gbl... It was already disabled. I used threading and kill the process after a short delay.
"William Stacey" <st***********@ mvps.org> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. .. Try to disable NetBIOS over TCP/IP in the WINS settings for the interface(s) to see if that helps.
-- William Stacey, MVP
"RZ" <rz@inv.invalid > wrote in message news:Ou******** ******@tk2msftn gp13.phx.gbl... Hi Folks,
I wrote an app to scan our Packet Filter logs for certain IPs. It
uses GetHostByAddres s(). I used multi-threading to get around the 2 second hang. The remaining problem is that GetHostByAddres s() also attempts to resolve the machine name via NetBIOS. After running the application, the blocked packets to port 137 from our own
IP are added to the logs. How can I avoid this?
BTW, a free copy is here: http://nikola.com/freebies.htm
Regards, - Robert
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ruggierorizzi |
last post by:
Hi everyone,
i would like to know if there is a difference between gethostbyaddress
method and $_SERVER.
furthermore i hve a little problem using ip address resolution. Some ip
address are resolved other not. Why?
|
by: Rushikesh Joshi |
last post by:
Hi Friends
I am having some query.
On a server two site hosted
1) magnamags.com
2) stardustindia.com
Now when I am resolving the IP address for this both sites. I am
getting 202.71.136.211 (using GetHostByName).
|
by: Amy L. |
last post by:
When I make the following call:
IPHostEntry hostInfo = Dns.GetHostByAddress( hostIPAddress ) ;
If the PTR (i.e. the IP address to name resolution) does not exist my
program will start making Netbios calls (Name query to the remote host).
The netbios lookup is very undesired.
Is there a way to not perform the netbios query if the PTR record does not
exist?
|
by: huzz |
last post by:
I wrote a method which takes an ip address and returns hostname as shown below.
It works fine.. only problem i have is when the passed ip address is not
found in the database the method throws this error message :
The requested name is valid and was found in the database, but it does not
have the correct associated data being resolved for
How can i prevent this error message and instead return "-" ?
Many Thanks.
|
by: Sven |
last post by:
Hi!
I have a problem with
System.Net.Dns.GetHostByAddress(ls_Request.UserHostAddress()).HostName
Usually the call GetHostByAddress returns the correct hostname of the
client, but sometimes I get a hostname like _CERDR1342B88E.
Why? The clients are running under Windows CE.NET 4.1...
| |
by: Jed |
last post by:
I have a class for logging information about user activity on a web site, but
it suddenly became really slow. I was wondering what factors may have
caused the slow down.
Initially, I used the following code:
ul.HostName = context.Request.UserHostName;
Since the UserHostName is not always resolved, I opted for the following
more effective code:
IPAddress hostIPAddress = IPAddress.Parse(context.Request.UserHostAddress);
|
by: Jerome Lavalley, MCSE |
last post by:
I have an application that does a reverse lookup using
System.net.dns.gethostbyaddress, however I am encountering some problems.
If the application resolves the address of another machine it works fine,
but when resolving its own address, I get incorrect results.
SERVERA has 2 IP addresses (IPA1, IPA2). Each IP address has one DNS entry
(HOSTA1, HOSTA2)
SERVERB has 2 IP addresses (IPB1, IPB2). Each IP address has one DNS entry...
|
by: Dave |
last post by:
I don't suppose anyone will be able to help with this, it's most odd. I use
IPHostEntry hostInfo = GetHostByAddress(ipAddress)
to resolve an IP address to a name (in this case it is actually the local
computer, if that's relevant). The call is made on several occasions as the
program runs, the first two times it works fine, then, for no reason, instead
of the name it returns the IP address in hostInfo.HostName. This program has
been...
|
by: Steve Richter |
last post by:
I am using Dns.GetHostByAddress and Dns.Resolve to successfully
resolve and IP address to an IPEndPoint.
IPEndPoint ep = null;
IPAddress ipAddr = IPAddress.Parse(m_sRemoteHost);
ep = new IPEndPoint(Dns.GetHostByAddress(ipAddr).AddressList,
m_iRemotePort);
// ep = new IPEndPoint(Dns.GetHostEntry(ipAddr).AddressList,
m_iRemotePort);
// ep = new IPEndPoint(Dns.Resolve(m_sRemoteHost).AddressList,
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |