I am trying to make an application to listen in on a UDP port - the issue is that there is something already there. Here is the scenario: On port 5060 is a SIP-based softphone, it is listening for incoming calls. The application I am writing is also listening on port 5060 to receive the packets (which will then be parsed to extract the caller ID and various other statistics)
I have a program running on a machine on the local network that serves data on port 23. I'd like to be able to listen for data on this port, and add the data to a listbox when and if it comes in. Idealy this would run async. I sort of gotten this to work using the following: [code]
I've a plugin which always listening to the port 6002, and i have an ASP.net application which sending messages to the same port and receiving the reply from the plugin on the same port,Sending is working fine, and the plugin sends a reply on the same port but i don't know how to catch this reply, when i try to listen to the same port using Tcplistener the start method throws this exception : Only one usage of each socket address (protocol/network address/port) is normally permitted,
I am doing a little project before I get onto some more complicated stuff and I am trying to become more fimilar with ports. Basically the issue at hand is that I am not too sure how to listen for on a certian UDP port.
How can I ask my tcpListener to listen to particular IP on specific port? I want my tcpListener to listen to the local IP of the machine. I can get the ipaddress of the pc using Dns.GetHostAddresses(). But, if pc have multiple ip's how can I know which ip address is correct? From tcpClient class I am connecting to the server. So, I know the server ip and so I want to specify ipaddress to my tcpListener class to listen on.
I am facing a situation with winsock. My application successfully connects to any computer that is connected on my router but i can't connect to any online computers (using port 7771). It simply doesn't connect without any kind errors. Any ideas? I am using port 7771 as local and remote port.
I want my application to be able to communicate 2-way between the application on another computer and the host server which will be running on my computer.I want to use the BackgroundWorker built into vb to create a thing to make it listen for incoming messages, and also send out messages to the client.The client needs to listen and receive, same as the server, because both need to communicate with one another.I do not know how I can make it do either sending nor receiving.I would be using two different background workers to keep the code seperated and organized so that I will understand what code is for what.
I want the code to say that if i receive the message "Apple" without the "" and cap sensitive, then it will change Label1.Text = "That worked, word received Apple" or something similar to that. ( This is because I am ignorant and I want it to interpret the text sent through to figure out what the application is supposed to do, and last time I couldn't figure out how to make it do something when a certain text was received.
I have a problem to make a program for autologin my tplink router if I open a connection example : 184.108.40.206 port 80 with winsock (this is my router IP Address ) I can not get my router menu HTML pages. because the router ask for the user name and password How can I send my User Name and Password with this winsock? This Picture was captured when I access 220.127.116.11 with IE How to make an autologin program with winsock to my router?
I want to make a basic winsock chat server and client, and I just need to know the basics, like.How do you determine where to send the data?How do you determine where to receive data from?How to actually send and receive the data?I just don't want to read from a website that has a lot of extra information. I just want to start off with the basics so I can actually learn.
I've got a 9pin serial port plug and I'm wanting to use a button to play music, seems easy enough except from a hardware point of view, say my standard button has a output wire how do I connect that to my serial port? this video says PIN 1 and 4, but why?
I've been struggling with writing my own Ethernet to serial program and just about to give up since I'm down to the wire on this project. I keep getting intermittent errors and I just can't get around them.
I'm trying to make some kind of local port forwarder,this means an app which would in my case forward port 10972 to port 25565.This is because of safety precautions. I did a whole lot of work on searching and coding myself, but without succes. Probably it works one way, but not backways. I think the response doesn't work. I really don't know what to do now.
Public Class PFS Public Sub New(ByVal IP As String, ByVal listenPort As Integer, ByVal sendPort As Integer) Dim hostIP As IPAddress = IPAddress.Parse(IP)
I have textbox with vbscript, user could type integers, then hit return key, KeyUp event for return would trigge theWriteFile()being called for com port to write string to the device, if Ihit return key slow, I would get 0bytewritten for WriteFile(), timeout happening basically,if I hit return keyquick,
I'm trying to make my program forward port 2303 for UDP so that my game will work without the user having to forward their ports manually every time they want to play.I've searched and come across this C# code but I keep having problems converting it to VB.Net:url...
I am trying to make a TCP chat program, but instead of having people enter in the ip of the computer they wish to talk to everytime, i would like the program to be able to listen on all ip addresses, so that it will provide for a better user experience, and that i can have chat rooms with multiple people joining. I have the code working with entering in ips, however, when i use the IPAddress.any command it will not send messages.
This is my first post, so hopefully I'm asking it in the correct place.
Currently I have two subs where the first calls the second.
Sub Sub1() 'some code Call Sub2(x) End Sub Sub Sub2() 'some code End Sub
This means that Sub1 does not end until after Sub2 is complete.I need to have Sub2 run after Sub1 has ended. In my case Sub1 is triggered from an application event, so calling the two subs from another 'parent' sub would not work.Is there a way that I can listen for the 'End Sub Event' of a sub?I am currently working in VBA but will be heading to .net shortly so I'll take whatever flavour of code people can help with.
I have barcode reader work by rs232 , i using converter from rs232 to TCP/IP to make it connect by TCP/IP, Now barcode send data on this Ip "192.168.0.125" on local network and the IP port is 50000 How i can listen to this ip to read the data send to this ip?
I am developing an Application that uses TCP To listen for connections, and then when a message is sent to the server and then it alerts the IP that is running the server. (Lets say the server is on a iPhone, and some how the iPhone gets a text message, which alerts a tcp server running in the background via a .jar, it would send the owner of the iPhone a message on the computer telling it it has a text. This is just an example though, but I think it gets the general idea across. I've been trying to do this, and I can connect to a TCP Server (using 127.0.0.1:8888 for testing purposes, will move to a solid IP and Port later). I can start the server (its still buggy and under development) but i don't know how to connect to the server via an application, and when a certain message is received to alert the IP Running the server.
My Server Code is: Dim serverSocket As New TcpListener(8888) Dim clientSocket As TcpClient Dim infiniteCounter As Integer Dim counter As Integer serverSocket.Start() [Code] .....
Now I know that to connect you'd do something like Code: Dim clientSocket As New System.Net.Sockets.TcpClient() Dim serverStream As NetworkStream clientSocket.Connect("127.0.0.1", 8888) serverStream = clientSocket.GetStream() And I know I would have to use some sort of Byte() method to send/receive messages, but I am at a loss on how to set it all up.
I would like to know if it's possible that when an event occurs, a string variable begins to listen (so when a key is pressed, its value is appended to the string) until another event occurs.
EDIT:I would like to make it other way:When the event occurs, I want a textbox to activate as if i double-clicked it (althougt it would be invissible, i olny want the textbox to make an event happen when the text changes using that text)
I have an object of type SomeObject, with an event StatusChanged. I have a property in SomeObject of type Status also with an event StatusChanged. Within a private function in SomeObject, I would like to run some logic (including firing the StatusChanged event) in the event that Status has fired its StatusChanged event. I have been away from events for a while so it's a bit cloudy to me. How do I do this?
I'm writing in ASP.NET/VB.NET EDIT Ok, in the event that I can't do the above, how would I get the outer object (SomeObject) to fire its StatusChanged event when the inner object (Status) fires its StatusChanged event?
Currently I am doing a project that requires me to "listen" for new emails coming in MS Outlook. I have code that currently works to do everything else with the emails, but I'm not sure of the API/VB code (this is MS Access 2010 which uses VBA 7.0 running on a 64-Bit Windows machine) that will listen for new emails.
Not surer if I know exactly how to ask or phrase this questions/discussion.I have a windows service that listens to a COM port for GPS data and send the information out through a UDP port to a listening application (VB6 app). I have a UI front end for the service that I would like to listen or watch the data and do some other things with the data.
The service raises an event in which I would like to have my UI listen to. Now I'm guessing that since my UI is on one thread and the service is on another, if I add a handler to the event, it may never pick it up.
Therefore, I am wondering how can I listen to the events from a sperate UI application. I heard a lot about Remoting, but my concern is configuration; our end users are not technical at all and not sure what is involved...and I'm not that familair with Remoting.
I am trying to use m.WParam to separate the event raised by left arrow key "<-" and right arrow key "->", but somehow m.WParam always = 0. How can i separate the event raised when the user press left or right arrow key?
I would like my application to be able to listen for when the Esc key is pressed, then close the application. I have been searching Google but all I am getting is when in texboxes and thing of that nature, not a global key press.
I'm trying to create a MDI DockManager component. Basically what it should do is take each MDI child form and turn it into a TabPage. Instead of showing the MDI forms, the main form then hosts a TabControl with each 'form' as a TabPage.I expect this to be quite a big challenge, and I know I will probably not manage to do it... But it would be a great control if I could!Well, for this to work I need my component to know when an MDI child form is added / removed. As far as I know, there are no events the form throws when this happens... The forms are not added to the Controls collection (are they?!) but the user merely sets the MdiParent property of the child forms.
The only useful event I could find was the MdiChildActivate event, which should fire when an MDI child is activated. I am pretty sure that is not enough for my idea. It might be enough to detect new MDI child forms being added, but if one is closed (eg, removed) there is no way I can detect that.So, I'm basically looking for a way to detect when an MDI child is added or removed from a form. Is that possible at all?
I have a Windows form.in windows form have a combo box that give me a list of available port serial with it code (Dim ports As String() =SerialPort.GetPortNames())for example( Com1,Com8,Com15,...).but I want to give me fullname of serial port in device manager for example in dvice manager is these (Comunication Port(COM1) - Printer Port(LPT1) And USB Serial Port(COM8)).how to Get it?
I want to make a final project to the university there will be button when you clicked the computer will listen to you and print. what are you say in text box or in rich text box on the screen note: i'll start from zero i know nothing about this but i hope do this project or the project "save audio file in picture" but i like this one "computer listen to me". i'll use vb.net express 2008.
want my application to trigger audio files when the user clicks a word/sentence in a label, and show a tooltip on mouse hover. I use VB. I tried using TTS (SAPI 3.5), but can not know which language the user's operating system will have. Also, I was advise to use pre-recorded sound wav or mp3. I created the audio files, but am not able to link/connect/call.