End A Data Packet From Program To An IP Address?
Jul 20, 2011How am I able to send a data packet from my program, to an IP Address on a certain port (using Udp).
View 4 RepliesHow am I able to send a data packet from my program, to an IP Address on a certain port (using Udp).
View 4 RepliesI am developing a program that will manage students details. I have bound the program to an access database but i want the program to be able to retrieve a students first name and address when i enter the students first name in a text box and clicking a button.
I tried this code below but it didnt work.
Private Sub btnGetData_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetData.Click
dt = StudentDataSet.Tables("Mystudent")
[CODE]...
I just update my software and begin to use the vs2010.I want to when my users use my program,if they haven't installed the net framework4.0 or they installed the old net framework version,my install program can auto-install the net framework.
View 8 RepliesI have been trying to figure out how to use Packet X to Capture Packets from a certain program that uses UDP. Does anyone know how to do so?
View 1 RepliesI am trying to read a packet of data which has come in from RS232. I need to be monitoring the port until data comes in to be actioned. I have been doing this fine for some time using the following code:
Dim strline As String = Nothing
Dim comPort As SerialPort
Dim bIsOpen As Boolean = False
[Code]....
The code above works without a problem unles byte 1 or two are greater than 127. Basically, all of the characters that are not converted seem to be 128-255.
I am using VB 2008 express. Clearly I need to read each byte individually and store it as a byte within an array instead of a string but i am not sure how to do this.
how to get around this either through reading bytes properly or through using a different encoding format
I am sending data to server via TCP IP Connection. I am using a continuous loop at the server end - that accepts new clients and while streams can be read, it reads data stream.
The data is sent from the client with 2 leading bytes of data that represent the size of the packet of data sent and type of data.
My question is: how do I retrieve the size of the data packet and then check that this amount of data has been retrieved?
[Code].....
I am sending data to server via TCP IP Connection. I am using a continuous loop at the server end - that accepts new clients and while streams can be read, it reads data stream.
The data is sent from the client with 2 leading bytes of data that represent the size of the packet of data sent and type of data.
My question is: how do I retrieve the size of the data packet and then check that this amount of data has been retrieved?[code]...
I'm writing a program which uses sockets, Now the issue I'm having is, If the packet received is over a certain size, the socket then fails to receive anymore packets/data after it.
View 3 RepliesI want to get current internet ip address in vb.net. not localhost ip address. like as [url]...
View 5 RepliesWhat kind of IP address does whatismyip.com provide?
How can I get it using VB.Net code?
How to get ip address in vb.net. i used below code to get local ip address but it showing dns is not declared. can any one tell me what is that Dns in the [code]...
View 5 RepliesMay I expose my "small" problem?Here, i'm following a course in my University, called Introduction to Programming, there are only beginners in our class. i'm also a newbie, to say so.And some stupid students were not paying attention so he gave us a crazy assignment for Friday 30th.This is what his assignment consists in. I have created a PDF file from his requirements and some samples of Code.[url]
View 6 RepliesHow to get email address collector in vb.net
View 2 RepliesI want to print the current port address of the usb stick which is connected to the computer ? By using Visual Basic 2010
View 1 RepliesIm trying to make a little program that gets the computers IP address i have got it to do all of that and have got it to use the default email program to add the email address, subject and body but i cannot get it to add an attachment.
Imports System.Net.Mail
Public Class FrmRemote
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
[CODE]...
How to add get this code to add an attachment?
I need to make a program for my school (I`m the principal), that reads the text in the memory address of the program and write it down in a txt. I already have the address numbers. For more information, I use VS 2008.
I was trying to make one code to get the memory address. So, after I succeed this, I'll make the correct program.
The code I made(adapted from [URL] returning-0 ):
Public Class Form1
Private Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Single, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
[Code].....
I need to make a program for my school (I`m the principal), that reads the text in the memory address of the program and write it down in a txt. I couldn`t find a professional here in my city so, I already have the address numbers. For more information, I use VS 2008. I was trying to make one code to get the memory address, and after I succeed this, I'll make the correct program.
[Code]...
1. It only gets the first 4 bytes(is it?) of the memory address. I want it to get all of them.
2. I haven't discovered how to convert each byte(?) into a character. Is there a function for this?
3. When the program runs, after clicking ok on the MsgBox, it highlights the Next and debuggs:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
I'm trying to write a text strings into a binary file and then call it back from another sub.[code]...
View 6 Repliesi am trying to run a .vbs script that is not in the same directory as the program is in
Dim CustomInstalaionPath As String = "C:UsersuserDesktopTest"
Process.Start(CustomInstalationPath + "/run.vbs")
the program is running in the normal directory for de-bugging
C:UsersuserDocumentsVisual Studio 2010Projects...
i have tried loads of ways but nothing is successfully running it
Imports System.Net
Imports System.Net.Mail
Public Class Form1
Sub sendMail()
Try
Dim AnEmailMessage As New MailMessage
[Code]...
I use this code to send an email through gmail account but the thing I want to do is, I want to check whether the given email and password exists or not and if it exists then pop out a text box with the body of the mail and type the text and then send it as a mail. But in the above code you have to log in and type body and when you send the mail , It verifies for the email and password while sending and if anything goes wrong says there is no such gmail account.but i want to check it whether the email and password exists or not, when the user enters the email and password at the beginning itself.So that he enters the right email to log on to compose a mail.Is there any way to check whether the given email and password is correct at the beginning only ?
I have address data that is surrounded by random text. Is there a way to extract this data either with a call to a web service or some vb.net function?
example: 1111 S WILSON ROAD APT B8 CITY STATE 55555 0 0 0 0 0 0 0
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.
View 1 RepliesSocketException 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.
[Code]...
Can anyone point me to some code which can help obtain the network address from the host IP and subnet mask?
View 3 RepliesI want to make a program that looks like an address book (name, birth date, phone, e-mail etc) and stores all the persons data in a txt file. If I add a new person, for example, it will be added after the last person that was added in that txt file.
View 2 RepliesI am looking for the best way to capture and validate US & international personal data. I have to use ASP.NET 2.0 (vb.net) and no 3rd party web services. This are all client restrictions.
The main point of this is I have to toss their data to FedEx for a shipping quote. I think FedEx has a address checker but that web service was not approved in the scope of the project and its too late to get it added.
My current solution is to just let the field be required and free form then before I save their profile check to see if FedEx will return a quote. If it fails then I will ask them to recheck their profile or contact the admin.
it's simply connect to SQL and get name , mobile , last name , deaprtment , address data from table1 while id = 5?
View 10 RepliesI 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 ?
View 1 RepliesI'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
[code]....
' Use Your work Group WinNT://&&&&(Work Group Name) Dim DomainEntry As New DirectoryEntry("WinNT://Wokgroup") DomainEntry.Children.SchemaFilte
[code].....