VS 2010 - Listen For On Certain UDP Port

Aug 6, 2011

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.

View 3 Replies


ADVERTISEMENT

Listen To A TCP Port

Apr 27, 2011

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]

View 6 Replies

Listen To A TCP Port Which Is Already Being Listened By Another App

May 19, 2011

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,

View 4 Replies

Make A Winsock Listen On A Particular Port?

Sep 12, 2009

This must be really obvious, but how do I make a winsock listen to a specific port (recieve data?)

View 2 Replies

Make An Application To Listen In On A UDP Port

Mar 29, 2012

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)

[Code]...

View 3 Replies

TCPListener - Listen To Particular IP On Specific Port

May 26, 2009

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.

View 1 Replies

VS 2010 - Application To Be Able To Listen For When The Esc Key Is Pressed?

Jan 30, 2010

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.

View 4 Replies

TCP Listen On Any IP?

Mar 11, 2010

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.

View 3 Replies

.NET: Listen For Keypresses?

Apr 17, 2012

I found the code linked below on on of Microsoft's websites for listening for keypresses, however I can't seem to ge thte code to respond?

View 5 Replies

Listen For The 'End Sub Event'?

May 26, 2009

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.

View 1 Replies

Listen To IP On Network?

Dec 6, 2011

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?

View 8 Replies

Using TCP To Listen For Connections

Dec 17, 2010

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.

View 3 Replies

Using A Serial Port In A DLL With .NET 2010?

Jun 3, 2012

I am trying to buld a DLL in VB.NET 2010 that will be use to control a vending machine.Whin a call into the DLL to a function to open and setup the comport the first time its opens it just fine, but if a call into the DLL again it does not know that the port is open even if it is still open. I can check with another program and is shows the port is open and if I try to call into the DLL again to open the port I get an error that the port is already open. Any idea how to set this up so it will work.

I need to open and config the com port in one call that leaves it open and then in other call use the com port to talk the equipment in the machine without closing the com port untill it is required to close it.

View 1 Replies

VS 2010 - WCF Not Binding To TCP Port

Jul 23, 2010

I'm using VB.Net in VS2010, I'm attempting to self-host a WCF service. (It's actually in a windows service, but I'm trying to do this via a simple console app. Below is the code in question, the TCP/IP addresses are injected directly here. The WCF service itself is simply a renamed DEFAULT new WCF service project.

Dim host As New ServiceHost(GetType(TestService))
Dim tcpb As New NetTcpBinding()
tcpb.PortSharingEnabled = True
host.AddServiceEndpoint( _
GetType(ITestService), _
tcpb, _
"net.tcp://localhost:62020/TestWcfService/" _
) host.Open()
Console.ReadKey(True)
host.Close()

Is there something special I need to do to get the port to actually bind? when I run netstat -a it doesn't show a listening port on 62020 I am really at my whits end on this. I have another WCF service I'm trying to migrate out of IIS, and into a separate server running in a Windows Service. The WCF service will only be accessed internally. I've been having numerous issues in getting that migrated, so trying to get a simple service to bind, and have a client (website) access it. The other WCF is binding (different port) fine, but having communications errors.

View 1 Replies

VS 2010 Disconnect IP From Port?

Jun 23, 2010

Lets assume that I have a game server in my computer.

I download a compiled game, server/client side.

The player starts the game and it keep sending and receiving data from the server.
Lets assume now, that I think that the player is using some bug and winning all the rounds. How can i disconnect his IP from the server port? I have seen some people using some kind of DLL to do the job. Its something like iphlpapi.dll ... i dont remember well.

View 11 Replies

VS 2010 VB + ASP.NET COM Port Conflict

Dec 13, 2011

Apologies for the long post, but I would be very greatful for any advice given. I have developed a visual basic application to communicate with a device through a COM port. This application works fine. The device connected to the COM port sends information relating to the status of the device, this information is read in using VB and inturn written to an SQL database. Using the visual basic application the user can also send commands through the COM port to the device. The application scans the users computer and detects all available COM prots, these are presented to the user and they can select which one to connect to. The COM port is held open for the entire period that the program is in use (this is to allow for the incomming information to be read)

[Code]...

View 1 Replies

String Or Textbox To Listen?

Mar 21, 2011

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)

View 3 Replies

VS 2010 Acessing Parallel Port?

Jun 18, 2012

I've been trying to this application in Visual Studio 2010 to only write to the parallel port, so supposedly it would be a very easy task, and by all the tutorials in the internet i've seen before it really is! Although it throws me always the same error which is too generic and don't give enough information for me to solve it. I'm doing this using the "Inpout32.dll" library to make the communication between VB.NET and the port..

[Code]...

View 2 Replies

VS 2010 Detecting AT Command Port(s)?

Apr 22, 2012

looking for a way to detect all available AT Command ports on connected USB Mobile Modems.

I've tried messing with WMI a bit, but was only able to detect the HSBC ports, not the AT Command Ports which is nessassary to issue AT commands to the modems.

View 2 Replies

VS 2010 Get Com Port Number By Friendly Name?

Feb 11, 2012

an application working with a modem through usb virtual port,on every different computer it gives different COM port numbers so I have to guess it. How to get COM port number by friendly name like in Windows Device Manager if i know GUID, PID & VID of device. Does anybody have a code snippet?

View 4 Replies

VS 2010 Reading Data From USB Port?

Feb 26, 2012

how to read data from a USB Port. I have a games joystick connected to a USB port on my computer and the joystick has 10 buttons which each when pressed sends some binary code into the computer via the USB port. I need to capture these button clicks and perform a different event for each button click.

View 8 Replies

VS 2010 Serial Port Communication?

Dec 31, 2010

I'm trying to read data coming from a serial port. I simply want to ignore all other data besides the string "button_pushed". The device actually writes "button_pushed" to clean up the display when viewing the serial connection from console or similar. I can change this easily but I'd like to keep it if possible.

My code is as follows:

[Code]...

I'll get an IOException from readLine(). I tried using readExisting() which prevented the error but results in the block being executed twice (probably caused by the "") so the log reads "No data match" and "Data match" for one button push.I have a few questions. First, why does ReadLine cause an exception? I tried to negate that with is_closing but it still occurs. Second, will I run into problems using readExisting as it reads the entire buffer?

View 1 Replies

Get An Object To Listen For Its Property's Event?

Dec 15, 2009

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?

View 1 Replies

Listen For Outlook Email Notification?

May 26, 2011

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.

View 3 Replies

Listen To Events From A Windows Service?

May 10, 2011

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.

View 1 Replies

Listen To Left And Right Arrow Key On The Keyboard?

Aug 17, 2009

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?

[code]...

View 1 Replies

RFC - Listen For Connecting Clients Using TcpListener?

Oct 8, 2011

I posted this code in another thread as an example of how to listen for connecting clients using TcpListener.it is a small part of a larger project, its all my own work,

Imports System.Net
Imports System.Net.Sockets
Public Class Server[code].....

View 2 Replies

Speech Recognition Dont Listen?

Mar 31, 2012

ok i want the speech recognition to listen to me but not do anything unless it hears a certain word or phrase

View 4 Replies

Parallel Port Control In 2010 Express

Oct 12, 2010

Can someone tell me if the functionallity to control a parallel port in MS VB 2010 Expess exists? I was expecting to have to add a reference such as the microsoft comm control 6.0. However this reference does not appear in the list. Everything I search for references .net 2005/2008.

View 4 Replies

VB 2010 Send Hex Values Across The Serial Port

Jul 18, 2011

I want to send hex values across the serial port. I know, I know, your thinking not this again. But what I need to do does not seem to be addressed, or I am some how missing it when I search around.

[Code]...

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved