Detect The Address And Port Number Of The Parallel Port In Computer?

Jun 9, 2010

I would like to detect the Address and Port number of the Parallel Port in computer.


Get Ip Address And Port Number Assigned By .net?

May 30, 2011

I have 2 winforms, one acts as server (ie Winform:Server role) and another one as client (ie Winform: Client role). In my LAN setup, there are 6 PCs and these PCs connected to each other via a 8-port switch and each PC has more than 1 LAN card.

There is one PC running [Winform: Server role] and 5 others running the [Winform: client role]. In [Winform: Server role], I'm using following code to obtain local ip address and port number and the [Winform: Server role] will listen to all incoming TCP requests according to these auto assigned ip address and port number.

Dim Listener As System.Net.Sockets.TcpListener
Dim Client As New System.Net.Sockets.TcpClient
Dim Message As String = ""


I need to clarify my intention. My current approach to my intention maybe incorrect. I attempt to create a 'zero configuration client-server networking' and that is plug & play. The server will know where the client and vise versa. I know there is a program (i.e. MaxiVista) has done that exactly.

MaxiVista has 2 applications, i.e. server and client. Users only need to execute the server application in PC designated as server role and execute the client application in another PC designated as client role. Then the server will be able to find all executing clients in the same LAN.

My intention is just that. Plug and play 'zero configuration client-server networking' within the same LAN.

View 3 Replies View Related

TCP - Send A String Held In A Var To An IP Address And Port Number Both Also Held In Vars

Dec 9, 2011

I wish to send a string held in a var to an IP address and Port number both also held in vars. I also wish to listen to a signals coming in on a particular port number so when particular strings are received I can trigger other transmissions.

View 2 Replies View Related

Print To Parallel Port In Net?

Dec 31, 2008

I use the following code to print to the receipt printer on the parallel port in vb 6.0, but it seems that it doesn't work on[code]...

View 2 Replies View Related

Call The Parallel Port With Vb Codes?

Jul 14, 2011

How to call the parallel port with vb codes.I'm going to make a helicopter to control with my pc.

View 3 Replies View Related

Check Or Map If Parallel Port Is Mapped?

May 31, 2010

i want to work with it in vb. 1st i want to check if port is already mapped or not, if not then map it and once done remove the mapping. The one way is using shell and pass command in it, but not sure how to get already map status and also wondering if there is any other method to get it done.n :)

View 1 Replies View Related

Connect To Parallel Port Printer?

Apr 24, 2012

I have a program that connect to 2 printers at the same time. Ribbon Printer and Label printer.

I have set the ribbon printer to be the default printer of the server so that normal document printing can be printed using it. This is very simple and i already finsih the code for it.

However i have a Parallel printer at Port LPT1 which i wish to use it to print label. I have search online but find no solution on how to open connection to LPT1 and print the document in coding.What i can find i only send a window command to the port LPT

View 1 Replies View Related

Interface Spi Using Parallel Or Serial Port?

Dec 29, 2010

i need to interface an spi analog switches using either a parallel or serial port. Is this possible?

View 1 Replies View Related

Parallel Port And Relay Control?

Oct 26, 2009

im new around here and also to VB.NET infact any aspect of programming, im hoping to be able to some useful stuff but at the momment im a little stuck i only have basic knoweldge so anyway here goes im programming in VB.NET 2008 Express edition, im also using inpout32.dll which is running ok and also controlling the parallel port fine.the problem i have is as follows the program so far is controlling the 8 outputs at the momment, i can turn each individual one on but when i try to turn multiple outputs on it will only turn on one and the other that was turned on goes off i understand its controlled in a 255 bit array but how to decode it is a little tough

View 5 Replies View Related

Programming USB To Parallel Port Converter?

Jul 4, 2010

I am new to VB and am needing to write to the parallel port.  I am using a laptop so have got a USB to parallel port converter and need to know how to write to it using VB (I am using Visual Basic Express 2010)

View 7 Replies View Related

Timer To Control Parallel Port?

Mar 11, 2010

i want to control pc parallel port using , i need timer coding .

View 1 Replies View Related

VS 2008 - DLL For Parallel Port In Windows7

Sep 18, 2010

I need to program Parallel port. For accessing port I used inpout32.dll but it is not working with windows 7.

View 1 Replies View Related

VS 2008 Parallel Port Equivalent?

Oct 14, 2010

In my project I was using Parallel port to drive a relay circuit with the help of inpout32.dll. But as we all know nowadays parallel ports are getting extinct and USB is getting replaced in its place. Is there any other means I could adapt for driving external circuits from PC, instead of using Parallel Port

View 1 Replies View Related

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


View 2 Replies View Related

Usage Of Each Socket Address (protocol/network Address/port) Is Normally Permitted?

Aug 11, 2009

SocketException was Unhandled: Only one usage of each socket address (protocol/network address/port) is normally permitted I get this error every time i click collect a second time.


View 3 Replies View Related

Activate The Control Lines Of The Parallel Port?

Nov 1, 2009

I have written a programm with visual basic 2008 express edition and I'd like to use the parallel port to communicate with my self-made circuit. I want to controll 120 LEDs with the parallel port but I don't get it how. I know how to activate the databus but not how to activate the control lines of the parallel port.

View 3 Replies View Related

Communications :: Stepper Motor With Parallel Port

May 25, 2009

I have created a program using inpout32.dll to run my stepper motor . I can run stepper motor now but the problem is that it is running very slow! is there any better way i can run my motor fast as i want.

i used following method.

option explicit on
Dim myTime as object
public sub Form1


if i set the value of mytime less then 2000 my motor does'nt work at all. i tried also with the timer tool and i wrote the code in the tick event of timer but it is also very slow.

View 2 Replies View Related

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

Use The Parallel Port To Communicate With Self-made Circuit?

Nov 24, 2009

I have written a programm with visual basic 2008 express edition and I'd like to use the parallel port to communicate with my self-made circuit. I want to controll 120 LEDs with the parallel port but I don't get it how. I know how to activate the databus but not how to activate the controle lines of the parallel port.

View 5 Replies View Related

VS 2010 Writing To Parallel Port / Windows 7 64-bit

Mar 11, 2011

Does anyone have experience writing data to the parallel port (printer port) in Windows 7 64-bit. I have been trying inpout32.dll, inpoutx64.dll and following all the info on and but can't get anything to work. I have an on-board parallel port at &H378 - not an add-on card - and have tried various modes in the BIOS (standard, ECP etc). I have a background in electronics so I am confident my testing methods are sound; I just cannot get a data bit to change state under program control. I need to send data to an 8-bit port on some 20th Century electronics so serial/USB interfaces are not really an option. There must be a way to control those 8 data bits in Windows 7, mustn't there?

View 14 Replies View Related

Writing A String To LPT1, The Parallel Port?

Dec 18, 2011

I have a fairly old radio receiver. (Icom R70) A friend and I have built an interface to control it from my computer. The interface is parallel. For me the interface is a black box. (My friend is the electronics specialist) In the description (25 years or more old) the statement to set a frequency and receive mode (like Am, FM etc) on the receiver is:print ".0:087330"

Today I am working in VB.Net and on Windows7 pro. I have already spent several days figuring out how to do this, but can't get it to work.I have found inpout.dll, but that does only allows me to write one byte at the time, and if I break up the above string and send nine individual characters, it does not work.

View 13 Replies View Related

Communications :: Parallel Port Input State Change?

Apr 3, 2011

What i want it to do is 'listen' to the lpt port, when a sensor is broken then display the time. there are two sensor to measure the time of the first and then the second sensor.How do i get VB to listen to the sensors which are on two different inputs of the lpt port and time stamp in micro seconds. I can get it to read the state of the input on mouse click but i need it to display the time in micro seconds when the input changes. i will then use the times from the two sensors to work out the time it took between both sensor changing.

View 5 Replies View Related

USB To Parallel Printer(CEN36) - Doesn't Appear As LPT Port Device

Jan 26, 2012

I'd try programming in with a usb to parallel printer but it doesn't appear as LPT Port Device. It show as a USB Printer Support in USB Controller. Just to receive and send a bit in different pin to be in servo controller/driver.

View 4 Replies View Related

VS 2010how To Transfer Or Receive Data Via Parallel Port

Dec 19, 2011

I want to control the D0-D7 pins of the parallel port(LPT) with VB2010. I do not need to transfer or receive data via this port, all I want is to set high or low (5V or 0V).Is it even possible?

View 4 Replies View Related

Converting Visual Basic Parallel Port App Using Inpout32.dll In To Delphi?

Nov 23, 2011

I've been given this simple VB application and library which I'm told can open a door/turnstyle attached to the printer port at 0x378 base address.'Inp and Out declarations for port I/O using inpout32.dll.

Public Declare Function Inp Lib "inpout32.dll" Alias "Inp32" _
(ByVal PortAddress As Integer) _
As Integer


how to declare the library functions and what to declare the variables as (&H378 is obviously not an integer)

View 2 Replies View Related

Send Data / Signal To H-Bridge Then To DC Motor Using Parallel Port In Program?

Jan 21, 2012

How will I send data or signal to H-Bridge then to DC Motor using parallel port in

View 2 Replies View Related

VB Parallel Port Control (inpout32) SEHException Was Unhandled: Xternal Component Has Thrown An Exception Error

May 14, 2011

here is my code



View 1 Replies View Related

Set A Host IP Address And Port?

Sep 30, 2009

How can I set a host IP address and port.. and then detect if the port is open (accepting connections)or closed (denying connections)I came across this while searching, but it doesn't seem to function all that well..Using the port 80 and the host [URL] The result it gave me was closed... which is obviously wrong.So what can I do?Code: ( I have also imported "System.Net" and "System.Net.Sockets" )

Dim host As String = ""
Dim port As Integer = 80
Dim addr As IPAddress = CType(Dns.GetHostAddresses(host)(0), IPAddress)


View 3 Replies View Related

Detect USB COM Port?

May 6, 2010

I had tried to use vb.net2008 to detect a USB mapped to a com port, I basically followed[code]...

View 5 Replies View Related

Check If A Port Is Open On A Particular IP Address?

Nov 24, 2011

I have an application which need to send data to particular system on specific port. But the application gets hang if the target system port is closed.

I Want to know if a particular Port is open on a specific IP address so that i can continue my next task. PBL (Visual Studio 2010 Ultimate)

View 11 Replies View Related

Print Usb Port Address In Program?

Mar 6, 2012

I want to print the current port address of the usb stick which is connected to the computer ? By using Visual Basic 2010

View 1 Replies View Related

Write A Code That Can Detect Com Port

Apr 2, 2011

I write a code that can detect com port, like this


View 2 Replies View Related

Read The Data From Barcode Weight Scales By Serial Port And TcpIp Port?

Nov 27, 2010

I'm mohammed from Oman ,I'm visual programmer How I can Read the Data From Barcode Weight scales By Serial port and TcpIp port

View 7 Replies View Related

Get FullName From Available Serial Port (Com Port) From Device Manager In Windows Form With .net?

Jul 25, 2011

I have a Windows 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 Replies View Related

Find Out Port From Switch Of Computer

May 26, 2010

ok i got a hard question I have diferent computers, lets say 200 cps with all known mac address. i got 3 switches with 24 ports each. i want to know if i can be able to know the port No. and switch of a given computer given the mac address... some computer arent in the domain. how could i start puttin this into code

View 1 Replies View Related

The Given Port Name Does Not Start With COM/com Or Does Not Resolve To A Valid Serial Port?

Aug 2, 2011

If 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 Replies View Related

Automatically Detect Baud Rate Of Serial Port?

Jan 28, 2012

We have a weigh bridge connected to PC via serial port.A VB code fetches the data from serial port and puts it in clipboard,which can be used by other applications like SAP.

We have several different makes of weigh bridge at different locations, each with separate settings(baud rate,data bit,parity), hence we need to change the VB code each time a new make weigh bridge is installed.

can we write a generic VB code which can automatically detect all these settings and capture the weight?

View 14 Replies View Related

Find Out What Port Of What Switch Its The Remote Computer

Jun 22, 2010

I have different computers, lets say 200 cps with all known mac address. i got 3 switches with 24 ports each. i want to know if i can be able to know the port No. and switch of a given computer given the mac address. some computer aren't in the domain. how could i start putting this into code.

View 1 Replies View Related

Open The Specific Port Of A Windows Computer?

Jan 15, 2010

I tried to make a winsock program.But when i run, i have a SocketException "No connection could be made because the target machine actively refuse it."Any suggestions on what i should do? Im using 17477 port.By the way Im using my own computer to test it. So i have no idea why.How should I open this specific port in my own computer?

Is it possible that I could include it to could into my program so that i don't need to open the ports of each computer? Below is my code.


View 6 Replies View Related

Sending Data Into VB Through A Serial Port On Computer?

May 2, 2009

I am sending data into VB through a serial port on my computer, from a microcontroller. The data enters VB in an ASCII form, but I need it as a number. I can use the Asc command to convert numbers 0-127 however after this it dosent work. I believe this is becaus the ascii character map only goes through 127. So how can I convert the rest of the data (128-256) to a numbers?

View 3 Replies View Related

Copyrights 2005-15, All rights reserved