Find Serial Port Number

  1. Find Device Serial Number In Windows 7
  2. How To Find Serial Port Number
  3. Ps/2 Port
  4. Serial Number For This Computer
Active5 years, 1 month ago

How to find port number of computer how to find port number of computer/laptop Finding an IP address and port number is something you can do with the use of a very basic website. Jun 18, 2013  How to determine which COM port represent a USB connection? - posted in Windows 7: I have a device connected to the USB and i want to know the COM port. USB connections do not have com port numbers assigned to them unless its a usb-serial adapter which then it will assign a virtual com port #. Instead they have an address assigned to them. A simple way that I would do it would be if your running windows 7 is to go to devices and printer by clicking start-then click devices and printers.

I have a Windows C# application . The application connects to a RFID card reader over serial port . Though i have given it COM port 3 by default . I land into situations where user's port is not available and his port being used is something different by his windows OS.

My application does give user the ability to change the COM port , but to find which COM port is being used by their operating system , user needs to go to Device Manager and check , which a novice person might not be comfortable with .

Is there a function or a way to find exactly to what port is my RFID card connected to in Windows , so that i can simply display like :

Application Port Set to : COM ....Device Connection Port on OS : COM ....

Also my target framework is 3.5

Find Device Serial Number In Windows 7

Edit 1:

How To Find Serial Port Number

Tried using SerialPort.GetPortNames() but it returns an empty string as : System.String[]..

My RFID device is listed under Device Manager > Ports(COM & LPT) as Silicon Labs CP210x USB to UART Bridge (COM3)

Find com port number usb
user3828453
user3828453user3828453

1 Answer

Ps/2 Port

Hi @user3828453 how about the following and then you can, just use the correct port number which is returned if you still have an empty port than you have to ask the user to go into device manager and update the port via your interface.

Johan J v RensburgJohan J v Rensburg

Serial Number For This Computer

Not the answer you're looking for? Browse other questions tagged c#windowswinformsserial-portrfid or ask your own question.