Get The Port From An In_addr Value?
Oct 22, 2009I am trying to extract the port from a given in_addr value in windows.So far I am able to get the IP address using inet_ntoa but not the port.
View 1 RepliesI am trying to extract the port from a given in_addr value in windows.So far I am able to get the IP address using inet_ntoa but not the port.
View 1 RepliesI'm mohammed from Oman ,I'm visual studio.net programmer How I can Read the Data From Barcode Weight scales By Serial port and TcpIp port
View 7 RepliesI 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?
View 2 RepliesI would like to detect the Address and Port number of the Parallel Port in computer.
View 4 RepliesIf I uninstall the COM1 and reboot, it works. If I shut down (power off) and restart, I get the message below. If I uninstall then click on Scan for Hardware Changes,The given port name does not start with COM/com or does not resolve to a valid serial port. Parameter name:portName
View 8 RepliesI am trying to get my 4 port USB relay board to work in VB.net using the COM PORT. I found some code from a poster who has the 16 port USB relay version. When trying his code i can only get it to turn on relays 1-3 all at the same time. The product can be found here: USB 4 port relay
"01+//" - Relay 1 is switched ON
"01-//" - Relay 1 is switched OFF
"02+//" - Relay 2 is switched ON
"02-//" - Relay 2 is switched OFF
[code].....
So i am confused as to how to separate each relay out with that code above and just be able to turn on any number 1-4 relay on or off independently from each other!
I am trying to get my 4 port USB relay board to work in VB.net using the COM PORT. I found some code from a poster who has the 16 port USB relay version. When trying his code i can only get it to turn on relays 1-3 all at the same time. The product can be found here: USB 4 port relay I was following what the guy in the post was doing to turn his on:
[Code]...
Im having problem with the Serial Port. When i run my program, "Access to the port 'COM1' is denied". What does that mean? Im not sure whats happening because theres no error in my code. Someone suggest me to use 'COM2'. Which is also the same result. I have a microcontroller, programmed and run it. And i need to capture the data onto my vb, which is on a multiline textbox. How to i do that?Just to double check my code?
[code]...
i am a absolute beginner and i want to use vb to receive data from micro controller through serial port using rs232 standards, i found this code to receive the data serially, can any one tell me where should i paste this code, so that the data received will be displayed in message box.Private Sub DataReceived(ByVal sender As System.Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) HandlesSerialPort1.DataReceived
[Code]...
The link below has code to connect to a modem thru the serial port but it is for an earlier version of VB. when I convert the code, it does not fully convert and has 4 errors that prevent building the project. can someone tell me what needs to be changed or added?
[URL]
Note: the error: not CLS-Compliant
Do someone know if there is a\\ USB control for the USB port communication? like the SerialPort control for the COM port.
View 2 RepliesI am new to this forum as will as to VB. I am using VB6. I want to access the USB port in order to read the data at the USB port comming from my Data acquisition card.Or as a matter of fact can I also access the data from my mouse, because it also transmits the signal when ever the mouse is moving.
View 3 RepliesIt is possible to disconnect an IP in a port? I have a MMORPG server, and I need kick bad players using IP of this player.
View 2 RepliesI need to transfer data between several computers in a network using my app. I thought of using TCP ports. how to open and use them? I only want to make a file transfer and chat app that works offline.
View 3 RepliesHow can one close the usb port (shut off power (electric current)) ?
View 8 RepliesI am trying to send and receive packets over the LAN (i.e. NIC port) using VB.NET. I found some code that uses Socket wrench, but problem with such solutions is that users will need to install extra drivers and all which I do not want. I am looking to use drivers native to the .NET environment to send and receive packets through the LAN port. My windows forms application is in VB.NETneil
View 1 RepliesI am looking to send and receive packets from the LAN port using some kind of WIndows Native object so that the user of my Windows Forms control does not have to install any third party software.[For example, for Serial port I use MSComm, i want to know what I can use for LAN port?]
View 1 Replieshas to be able to retrieve an ip address from a list in a text document and send 3 commands to the IP address over port 23 and get the response back for the last command and type it into a text file and after that move on the next ip in the list
View 5 RepliesHow to control LCD 2X16 or 4X20 by the LPT port?
I have these two LCDs, I wired them and connected them to the LPT port and used free programs from the net. they work fine. I would like to learn how to do that in VB.NET. Maby program a form to show time and date and display the contenant of TextBox.
I had tried to use vb.net2008 to detect a USB mapped to a com port, I basically followed[code]...
View 5 RepliesI've written a small vb.net program to check the time and the state of the Windows Time service on a list of remote servers. It also grabs the events for W32Time for the last 24 hours. It's basically a support tool for managing time services on large domains.[code]Running TCPView, local ports used are from 2750 - 2770 which probably isn't a problem, the destination port is 1983 (something called a ihtp, Loophole Test Protocol). This port seems to be blocked on our firewalls and Can anyone explain why it uses this particular port? Is there a way to get it using a different port? Some sites suggest port 1983 is used by a trojan called Q-taz so our network people may not allow it.
View 3 Repliesgetting data from COM port. I can't the the moRS232.Read(128) code working in my project. And i get my rs232 class from codeworks.it. Attached is my VB project if u need it for reference.
here is the
Private Sub FindDistance_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FindDistance.Click
' Initializes and Open
[Code]......
I want to find the coordinates of a speeding vehicle by accessing the position of the vehicle through GPS(from a server system). how to access GPS port and retreive the data.
View 4 RepliesI am currently doing a program to control some device via usb port but i don't know how to interface the usb port using vb.net. anybody can help me with this problem as which namespace I should use?
View 10 RepliesI have developed a software for managing the details of patients, the software stores the data into MSsql database..However, the data I need to get stored has to be read from an external device which transmits data... Now my query is how I can read that data using VB.NET 2010.I have searched on net and found that I can use My.Computer.Port to read data from USB connected device, but I am unable to get its logic and any example to get this practically done.I also been through many books to understand the practical way of doing this, but not yet resolved with anything.
View 3 Repliesi am currently doing a program to control some device via usb port but i don't know how to interface the usb port using vb.net.this is code in vb.6.but i don't know how to changethis code into vb.net.
Private Sub Command4_Click()
Dim id As Integer
Dim status As Integer
[code].....
m new in Visual Basic programming, recently I have developed an application to send and receive UDP packets using the Socket Class. Everything is working ok, but there is one more thing I have to acomplish, which is specify the outgoing UDP port for outgoing packets (SendTo method), I need to do that because the application in the other side just process packets from an specific UDP port at the origin
View 3 Repliespls help us with syntax on how to write to a port in vb.net.
View 2 RepliesI 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 RepliesI am using a 3rd party communication component and it is able to tell me the names of installed modems. Given the modem name, I need the com port associated with that modem (so that I can set the modem baud rate directly through the serial port). I also need a way to determine if that port is already in use.