VS 2008 UDPclient.send Magic Packet (wol)
Jan 9, 2010
I want to make an application which turns on my computer. A Wake-on-Lan application should do the trick. I allready created something which sends data over UDP, i can see that it sends the data (with wireshark) but it does not send the correct data.
[Code]...
View 2 Replies
ADVERTISEMENT
Nov 18, 2009
I want to create a simple Windows Mobile (compact framework) application that sends a wakeonlan packet to a specified MAC address.
View 7 Replies
Aug 7, 2011
I can already capture packets however is it possible to edit the packet and then send it off? Suppose I had a udp pakcet that said "11-mydata", I want to change it to "11-newdata" then send it off. I know which packets will be accepted and which ones will be modified and sent. So is this possible?
View 1 Replies
May 2, 2012
Working with my friend on a Minecraft casino program. I want the program to send a packet of data to the server. He can make the plugin to capture the data in java but how do I make my end of it to make it send the data to the server? Do I need to make a class with the data to send the data?
View 9 Replies
Apr 9, 2012
I want ask how i can send hex packet to server
i am able to connect IP and port
in packet the data i send is.3..the hex code of data is 00 33 00 07 00 00 04 0F 95 13 00 00 00 here we can see that for 3 hex 33 is used and for char "." 00 07 13 and many others are used and for its 0F used [code]...
View 1 Replies
Feb 22, 2012
I'm sure I did this several months ago but can not get to work now. Have 2 Nics in PC: 192.168.61.201 and 202. NICs are connected thru switch. Normally if I ping 202 no packets would go out PC but 201 would ping 202 thru backplane.If I use WinPcap.SendQue it appeared (based on switch stats) that ICMP request packet from 201 went to switch and response packet from 202 went to switch and then to 201 NIC. Trafffic appeared in Wireshark. My belief was that WinPcap.SendQue forced packet out.Does this seem correct analysis ? Op: XP Pro SP2, Well it now appears I have SP3.
View 3 Replies
Sep 14, 2008
What Visual Basic code can be used to assemble and send a raw packet, and receive response packets? I looked on MSDN and I couldn't find any documentation for anything used to send a packet.
View 2 Replies
Mar 7, 2010
I use the Magic Mouse, it's fantastic in OSX but more so because of MagicPrefs which extends the multi-touch gestures its capable of. I'd like to know if its possible for me to write drivers for the Magic Mouse in VB? to extend it's functionality. Or would this be better suited for C++? I don't even know where to start.
View 4 Replies
Jun 15, 2009
I'm trying to use a UDPClient object to listen for all connections on a specific port. Devices on my network let me know when there is new data available so I can begin processing the new data, but I need to loop within a thread in order to continually look for new data. This is understandably a resource hog, and it takes up approximately 50% of my CPU load while running.
[Code]...
View 1 Replies
Jul 6, 2011
I am using the following code to receive data from a Public Address Controller.the programme sends data...waits for a reply....send more data...waits for a reply..etc.
[Code]...
is there some way of cancelling the BeginReceive after a delay so that the programme can carry on and inform the user that something is wrong and terminate gracefully?
View 8 Replies
Jan 31, 2009
1. Sniff for packets and analyze them,2. Block packets from reaching their destination (program) and/or3. Replace (send) my own packets to the destination in the same stream?
View 2 Replies
Nov 28, 2011
Say a machine has two seperate IP's. I am running a little test program that connects to an outside piece of hardware that has it's own IP. I receive data from that hardware. I want the same little program assigned to the two seperate IPs on my local machine to get the same data from the hardware. How can this be done?I am receiving data just fine but I am not seeing how to tie the program to a specific IP on the local machine. As soon as I run another instance of my program, not data is received on the second instance.For example: I have a program running on a machine. I want two instances of that program, each on it's own ip
Instance 1: 192.168.1.240
Instance 2: 192.168.1.241
I want both instances to listen for data coming from 192.168.1.50
This is a generic example of what needs to happen. I need to know how to define the local IP's the UDPClient is running on.
View 4 Replies
Aug 10, 2009
I cannot find a way to get the server to put the information of the recieved packet onto a textbox for the user to see.Client Side:
Imports System.Net.Sockets
Imports System.Text
Public Class Client
[code]....
I am also trying to get the server to send back a packet to the client saying it recieved the packet sent. I just dont know how to translate the packet to a textbox.
View 4 Replies
Jun 17, 2010
im trying to decypher their structures and substructures and right now im wondering if anybody knows what exactly sequence and acnowledgment numbers in TCP packet headers are made of?
View 1 Replies
May 11, 2012
I save a lot of settings in an INI file as 1 (enabled) and 0 (disabled), all around the project's module i have this check If setting = 1 then ' do somethingEnd If ' OR If setting = 0 then ' do somethingEnd If
My question, is it good for performance to declare public constants to hold 1 & 0 and use them in such above checks instead of using real number?
In general, if i use value like 8, 9, "", "$", etc... in just two different places, should i declare constant for it?
View 16 Replies
Nov 9, 2009
[Code]....
Now as you can see it is sending the textbox1 text and then pressing enter then sending textbox2 text! Theres quite a few problems in that but before i discuss note: This code is in a Timer. Problem #1: It does not send the keys fully correct all the time because its trying to send them all at once! So i want it to send them 1 letter after the other with 200 ms sleep in them! Problem #2: The sleep is not working: The reason i know is because even after it did the first textbox1 text it didnt wait that 2000 ms!
View 31 Replies
Nov 22, 2011
I should convert some code from VB to C#. Given following lines of VB work (I think only because option is not set to strict):
Dim someProp As SomeType
Try
someProp = CType(SomeInstance, Object).SomeProp
' ...
Due to late binding, this code is possible under VB. Of course, following won't work under C#:
SomeType someProp;
try
{
someProp = ((object)SomeInstance).SomeProp;
// ...
How could I formulate something similar under C#?
View 1 Replies
Apr 9, 2012
I have a filter that is used to populate a grid view and the url will conain: /example/grid?value1=1&value2=2
It will then have a link to page 2, which allows them to edit something.I then want them to click a link that will send them back to the gridview under the same parameters of: /example/grid?value1=1&value2=2
Is this possible? How do I hold on and fill in the URL values so it knows how to refill the grid view accordingly?
View 1 Replies
Feb 12, 2011
For my project, I need to develop an app, which will have MS-SQL db with 4 tables
a>FileHeader
b>FileFooter
c>Extension
d>Detail about the file.
This is all to do with the Magic Numbers, or File header and footer, found in all files. The first 4-byte and last 4-bytes.
Example:
Suppose a word DOC file when read using this app should return and match the values
D0 CF 11 E0
So, how can I read the files using vb.net, fileIO, FileStream/StreamClass/FileReader? I just need to open the file and read the first 4 and last 4 bytes of any given file. And then it should connect back to the SQL database and lookup for the matching values from the tables as I had mentioned. And return a match found or not found.
View 5 Replies
Apr 17, 2011
The goal in this assignment was to create a Magic 8 Ball that would display answers via array.Here's what I got down so far, now I apologize once again, I forgot most of the stuff so I don't even know if it is REMOTELY close to what it's suppose to be
Public Class Form1
Dim ArrayRes(7) As String
Private Sub btnASK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnASK.Click
[code]....
View 4 Replies
Mar 18, 2011
I'm designing a 3 x 3 Magic Square, where the 3 x 3 tables are made of up three adjacent list boxes. Upon starting the program, the 3 x 3 square consists only of the character "?" to represent a variable that has yet to be defined. The user will input through text boxes and button presses the characters 1 to 9, replacing the highlighted undefined "?' with the desired number. I'm required to include a Function procedure that can, at any time scan the 3x3 table and return an integer value of -1 if an undefined character "?" is present, a value of 0 if the rows, columns and diagonals do not sum to the same value, or the sum common to all rows columns and diagonals.
To start with I defined a 2D array and undefined.
Dim mSquare(2,2) As String
Dim undefined As String = "?"
Then I used a Sub to set the 3x3 table as undefined which I did not show to save space. Next I used a Sub to update the highlighted characters, allowing only one list box to be selected at a time and which I hope also assigns the the values to the array as they are updated. I removed parts of the code so this post isn't too big.
If lstCol2.SelectedIndex = -1 And lstCol3.SelectedIndex = -1 Then
lstCol1.Items(lstCol1.SelectedIndex) = input
txtInput.Text = ""
End If
For i As Integer = 0 To 2
[Code] .....
What I'm stuck on is the Function design. I'm trying to design something to scan the array, and give back an integer depending on the results, which are to return an integer value of -1 if an undefined character "?" is present, a value of 0 if the rows, columns and diagonals do not sum to the same value, or the sum common to all rows columns and diagonals.
I'm currently trying
Function checkSquare(ByRef mSquare As String) As String
For i As Integer = 0 To 2
[Code] .....
At the moment I keep getting the error "Public Readonly Default Property Chars(index As Integer) As Char". I keep getting an error like this even using a single variable and defining each j individually, and I'm wondering if its possible to pass arrays to functions or do I need to do something else. Is what I'm trying to do even possible? I did a longer method in which I just check all the entries individually but I'm hoping there is a more efficient way. Its my plan B for now.
View 6 Replies
Jul 9, 2009
unzipping file using GZipStream.Heres the solution but i hope that i don't need to imports another dlls [URL] the zip files i compressed with 7z. and here the code...
[Code]...
View 8 Replies
Apr 20, 2011
With all the smarts of actually loading images being done by the .net framework, seems like I shouldn't have to repeat it all in my code by checking for magic numbers, or using a hack like this:[code]Am I missing something obvious, like System.Drawing.IsImage(stream)?
View 1 Replies
Mar 11, 2010
I've used 3d control magic for VB.NET to create shaped forms.When I bulid my project to create an exe, I want to include 3d control magic.exe into it, to be installed automatically in the clients computer.
View 1 Replies
Mar 6, 2010
I have a problem.. every program i make in VB.net 2008 express wont start on my friends PC or any other except for mine laptop and mine PC... Instead, they get the "Send/Dont send" error...
View 13 Replies
Sep 15, 2011
I need to write some vb.net code that looks at a picture and "removes" the blackish pixels.Here's the scenario. A wound care doctor takes a picture of a persons hand on a flat bed scanner. The nice pink palm print is there but it is surrounded by blackish pictures. I want to make the picture pop by programatically "removing" or recoloring the pixels that are in the blackish range. i.e. the Photoshop magic wand select and delete.I have not code to start off. Hoping for some reference code and not just pcode.
View 1 Replies
Feb 26, 2012
"First of all please TURN OPTION STRICT ON.I make no apology for the capitals - I consider it that important.When you do you will see that you are still using HorizontalAlignment instead of ContentAlignment.VB is converting from one to the other for you.Although that works fine here there are many cases when it will not be what you intended and can cause some very hard to find bugs.Under Tools | Options | Projects and Solutions | VB Defaults Set: Option Strict ON, Option Explicit ON, Option Infer OFF".I did do this but it showed no errors, so I placed 'Option Strict On' at the start of the code, it then showed HorizontalAlignment with the squiggly line. I did edit my code to show this but I think you must have read it before I did. All other suggestions I will note and from now try to implement.Using "magic numbers" in the code is not good practice and makes maintenance difficult.Declare all such numbers at the top and use the names in the code.Is this what you mean? Const SpinTime As Integer = 500
Now when ever I refer in code to SpinTime it will always be 500..Change the NumberOfBoxes to 10 and run the app.In mine, to change boxes to 10 I needed to alter the code in 5 places, in yours 1 place! Talk about proof of the pudding etc.Now to my question, in the program when the start button is clicked and the five random numbers are displayed I have to stop and restart the program to generate five more. So I thought I would create another button 'Reset' this I did and all worked but it seemed a waste so I then just kept the start button in place and changed the text to Reset eg [code] This is fine the one thing I can't figure is how to replace the five numbers that were removed so that it is picking 5 from 500 every time. Now I'm at the end of all this writing I have it! just comment out the line 'Numbers.Remove(Number).
View 1 Replies
Mar 10, 2009
I'm building a simple udp lan chat application in vb.net and I'm wondering how I should split my packets. Each sent packet should have like an id, a username and ip address from where it's coming and maybe also a command part for like join or leave to update my userlist and a text message. I'd like to know what is the easiest way to put all this in a simple packet then easily split and access different parts from it when it's received. thanks.I'm using UDP since this is only in lan so i'm broadcasting to *.*.*.255
What I want to know is what would be the most easy and powerful way to format my packets so they include a username , an id, a command and a text message, then the user receiving it decrypt it to show only the message written by which user or if it's a command like join or leave to show the appropriate message of joining and add the user to the list for exemple.
View 2 Replies
Mar 11, 2010
first question is: Do you need to port-forward anything in order to receive a response?he sake of all that is good and holy, don't use ACCESS, EXCEL, or a TEXT FILE as a database. If you want your program to use a "local database", without any of the hassle of setting up a MS SQL or MySQL server, just click this link: >>> SQLite <<< Seriously. This is for your own good.
View 2 Replies
Feb 22, 2009
I am trying to intercept connections on port 2302 that is being used by a game. I was think about using something along the lines of
#Region " Imports "
Imports System
Imports System.IO
Imports System.Windows.Forms
[code]....
View 2 Replies