I've searched and seen alot of posts about obtaining the mac address of computers but I'm not sure if I understand completely or if those are the ones I need.
I am needing to obtain the mac address of a specific computer via an ip address. Most of what I've seen returns to me an array or list of items.
I have a server (server A) that has several public IP addresses. I am building a desktop application that will run on server A to fetch data from another server (server B) using the httpwebrequest class.
What I would like to do is be able to programatically direct the application to use a specific IP address from the one the server (A) has.
I'm trying to use the DHCP API (using the references on pinvoke.net) to retrieve a computer's MAC address when given the IP address but I can't get the code to work. I've run all the C# code on pinvoke.net through the C#-to-VB converter but I'm stuck now.
Here's what I have so far. The value of res is always 5 (should be 0). Thing is, I can't find any documentation on what the return codes mean
vb Private Sub GetMACDim client As String = "1.1.1.1" Dim server As String = "0.0.0.0" Dim si As New NativeMethods.DHCP_SEARCH_INFO si.SearchType = NativeMethods.DHCP_SEARCH_INFO_TYPE.DhcpClientIpAddress si.ClientIpAddress = Convert.ToUInt32(StringIPAddressToUint32(client)) Dim res As UInteger Dim oInfo As IntPtr
I tried to get os version of remote computer using ip address with WMI ,It shows "RPC server unavailable" error.If anybody have solution for getting remote system information without WMI in vbnet,
I have a web application (built as a product) that contains an XSL stylesheet that I'd like to use in a console application I've written in VB.Net in support of that web application. Is there a way to automatically determine the physical path to where the web application is installed? I know that the IIS Metabase holds this information, I just don't know how to access it.
What I have is the path to the web site. For example: [URL]. I'd like to look up in the IIS Metabase (on a specific server) to find the physical path (For example: c:inetpubwwwrootmyapplicationfolder) Is this possible from a console application running on either that server or even another server? (assume the account running the process has full admin rights).
How to get the remote computer name and IP address with vb.net !!! We are running a vb.net application on Intranet. We have users in remote areas who use the application. So I would like to know their computername and password.
How do I get the Internet IP of a computer using VB? not the xxx.xxx.x.xxx of a router. This code will go into a Windows Forms control and will be storable.
Actually it is possible to find the mac address of host computer using but i just want the code for access the visitor's computer mac address in c#.net
I am new in to .NET. I am creating an application where I have to perform Mail Merge from my program. I have created a form which contain RTB and user can write letters. I programmatically add tags for address, name, comp. name et while saving the letter. I have a datasource - in for mof a dataset to whom I have to send the letter.This is where I am stuck. I don't know how to open the selected letter and replace the tags and how to do mail merge.
im in the process of using vb.net code to return the ip address of my machine its working sorta correctly i can get the right ip address if i change the addresslist.getvalue(0) from [0] to any where up to [5]this im guessing is an array of information in the network adapter or something im not real interested in the other information in the other values my problem is depending on weather i have ipv6 options enabled in my adapter settings the true(192.xxx.x.x) is in value(2) for on and value(3) for off also i tried it on another machine and it came back as value(5) of 12 my problem is i can display every value() that has information in it in a text box but i cant make the program find the right address to use(192.xxx.x.x) this code runs and produces a multiline textbox with up to 11 lines of data in it and the ip address is visible in the list of data
Dim myIPs As System.Net.IPHostEntry = Nothing Dim ip As String Dim h As System.Net.IPHostEntry = Nothing
[code]....
but is there a way to either compare the adapter address list to a mask to get the correct value() for the ip address or is there another way to return the ip im not aware of?
How do I address a specific control that is on a UserControl? For example, I have a UserControl containing a TextBox, that I add to a form in code. Now I want to set the text of that TextBox, but I'm not sure how to do that.
I tried to make a winsock program.But when i run, i have a SocketException "No connection could be made because the target machine actively refuse it."Any suggestions on what i should do? Im using 17477 port.By the way Im using my own computer to test it. So i have no idea why.How should I open this specific port in my own computer?
Is it possible that I could include it to could into my program so that i don't need to open the ports of each computer? Below is my code.
I am working on writing a program that needs to send a command to a specific port on the same computer, I have that working fine. There is another piece of software running that is listening to that port for some commands (read on). Dim myTcpClient As New TcpClient myTcpClient.Connect("127.0.0.1", 61225) Dim networkStream As NetworkStream = myTcpClient.GetStream()
However when I try to send a command I get no response... Dim outStream As Byte() = System.Text.Encoding.ASCII.GetBytes("0x33") networkStream.Write(outStream, 0, outStream.Length) networkStream.Flush()
I have been given a list of protocols that I need to send to that port. What I have been told is that the size (in byes) is 1 and the value is "0x33" with no parameters. I am completely new to sockets and sending data through tcp.
I'm currently developing a download manager and converter for audio and video files. Does anyone know how can I get the music file from a specific folder from my computer (I already used openfiledialog) and putting it into a listview?
I'm doing a project now. I'm having a problem on getting specific file type from my computer using the .getfiles function.
Here's my codes.
Private Sub dlgOpen_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles dlgOpen.FileOk
Dim filepath as String = "C:" dlgOpen.CheckFileExists = True
[CODE]...
What I wanted to happen is when the openfiledialog prompted and once I've selected the file, the file information I've specified above must show on the application as a label. But nothing appears. The file name only appears on the text box beside the open button. It should also appear above the button and the text box as a label. How could i possibly do that? And how could I select just one file at a time from a folder with 150 other files in it? When I use getFiles, it only gets all at the same time everything that's in the folder even if i've only just selected one file.
Are there any IP Address filters or masks available in Windows Forms as per following screenshot? A backslash shouldn't be allowed or it should be filtered somehow.
SocketException was Unhandled: Only one usage of each socket address (protocol/network address/port) is normally permitted I get this error every time i click collect a second time.
I made web browser which consist address bar that I use it to type addressess in it i.ewhen I type [URL] it opens [URL] but when I go to anther page in google it doesnot show it's link in address bar lix InterntExplorer or other international browsers so how to show any link or any sub page's link in my browser address bar ?