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


ADVERTISEMENT

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

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

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

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 Winsock - Can't Connect To Any Online Computers (using Port 7771)

Mar 18, 2012

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.

View 9 Replies

Use The BackgroundWorker Built Into VB To Create A Thing To Make It Listen For Incoming Messages?

Mar 13, 2008

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.

View 1 Replies

Make A Router Auto-login With Vb6 Winsock

Aug 8, 2011

I have a problem to make a program for autologin my tplink router if I open a connection example : 84.82.1.123 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 84.82.1.123 with IE How to make an autologin program with winsock to my router?

View 2 Replies

Make File Transfer With Winsock Component On 2010?

Mar 30, 2011

does it possible to make file transfer with winsock component on visual basic 2010? Because i tried much codes, but it doesn't works

View 5 Replies

Combobox Unhandled Exception - Make A Basic Winsock Chat Server And Client?

May 31, 2009

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.

View 2 Replies

Make Serial Port Hardware?

Oct 4, 2010

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?

View 1 Replies

Make Virtual Serial Port Component?

Mar 26, 2009

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.

View 3 Replies

VB2010 : Make A Local Port Forwarder?

Jul 28, 2011

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)

[code].....

View 6 Replies

Make Ping System With Port Using Multi-threading?

Nov 12, 2011

i trying to make ping system with port using multi-threading.. but seems i got error on label.. i still wonder why suddenly label become a problem..

[Code]...

View 8 Replies

VS 2008 Make A Program That Sends An AT^ Command To A Port?

Aug 29, 2010

I want to make a program that sends an AT^ command to a port The AT^ Command is

AT^CARDLOCK="TEXT IN TEXT BOX 1"

View 4 Replies

Return Key Event Make WriteFile For Com Port 0 Bytes Written?

Jan 22, 2010

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,

View 1 Replies

VS 2008 Make Program Forward Port 2303 For UDP So That Game Will Work

Jun 19, 2010

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...

View 1 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

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

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







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