Checking IP And Port Of Switch / Router That Links To Remote Device

Oct 10, 2009

Our company has setup several remote devices that link to a switch Whenever there are problems on the device, some technicans will replace it using a new one We have a vb program that can automatically update the device setup in our server when technicans replace devices. So we do not need to login and update the setting manually However, our program cannot handle the case that there are more than 1 device that need replacement Therefore, our idea is to retrieve the ip and port of the router/switch that links to remote device using VB.net.

View 2 Replies


ADVERTISEMENT

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

VS 2008 Find Out What Port Of What Switch Its The Remote Computer?

May 25, 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 9 Replies

Send AT Commands To Router Network Port?

Aug 9, 2010

How can i send AT commands to my router network port?

View 6 Replies

DB/Reporting :: MS SQL Cannot Pass Port Forwarding Function On Router

Oct 2, 2008

I have setup a MS SQL server in my computer and enable the sql server to listen to the TCP/IP port 1500. I can use my vb.net program to access to the sql server from another pc within the same LAN by using the following connection string "Data Source=192.168.1.101,1500;Database=ABC;UID=SA;PWD=123;

But if I changed the "192.168.1.101" in the connection string to the IP address that provided by the ISP (i.e.: "Data Source=<IP from ISP>,1500;Database=ABC;UID=SA;PWD=123 the connection string do not work. I have set the port forwarding function in the router as forward all TCP from 1500 port to IP 192.168.1.101. But it don't work neither......

Then I checked the port 1500 with the webpage below: [URL]
It show that the port 1500 is closed! But if I use DMZ function on the router to explose my computer the internet.... the above webpage can checked the port 1500 is opened! And I can successfully connect the sql server with this connection string
"Data Source=<IP from ISP>,1500;Database=ABC;UID=SA;PWD=123;"
Is that the mssql cannot pass the port forwarding function on the router? I have set the port 8080, 21 forward to another IP on the router and it work fine......

View 1 Replies

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

Jul 25, 2011

I 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 Replies

Monitor A Switch Using LPT Port?

Jun 12, 2010

How can I monitor how many times a switch open and close? I am planning to add a label13 to my form and use the LPT port so every time the switch goes high (1) it will add 1 to my label13.text. The Printer Adaptor address in the target PC is 0x378. using pin 10 (ACK) or pin 2 (D0).

View 16 Replies

C# - Switch Component Controlled Via USB Port?

Jun 21, 2009

I need device switch component which an be controlled by code(.net,C# Or vb) ON/OFF state is enough. I have code knowledge in C#, .net window application, I need to make a switch that can be controlled using code via USB port ... so that using that switch I will turn on/off electrical devices (fan,light) for a specific time interval.. For my MINI Project

Note: I need the brief note regarding components needed and how to assemble it.

If you know any link which resembles this type of project pls refer me.

View 3 Replies

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

VS 2010 - Program Checking The Colour At A Specific Coordinate - Switch Between Windows ?

Apr 16, 2011

Basically what I want to do is create a program that every now and then (maybe 10 minutes) switches between either, all the windows currently open, or a selection of all the windows currently open, then checks the colour of a location on the screen. At the moment I have the program checking the colour at a specific coordinate, so that's all good. The problem I have now is how to switch between windows.

I've thought up a few ways to do this. The windows that I care about checking all have the same name, the same process class, but different process IDs. I already managed to stick all the process IDs into an array of integers hoping that I could use them but I don't have a clue how to bring a window to front using just the process ID. So the first method would work if I could figure out a way to do that.

My second idea, which is a pretty rubbish way of doing it, would be to simply simulate pressing Alt+Tab however many times to change between windows.

View 4 Replies

Connect To A Device Through A USB Port

Nov 5, 2009

How do I connect to a device through a USB port. Saying I know what the device ID is. I want to open up serialized communication between me and the device.

View 3 Replies

Create A Remote Control Device?

Aug 1, 2009

How would i create a remote control device so i could access any pc with this software and view there screens, share files, etc.

View 2 Replies

How To Get Type Of A Remote Network Device

Sep 3, 2010

I am writing a network diagramming application with SNMP autodiscovery. I can query SNMP devices but I need to be able to differentiate between laptops, servers, and workstations. The only response I recieve is cpu information, os version, and the cpu stepping. Any idea on how to get the type of a remote network device? This might be more a networking question.

View 1 Replies

Communicating To A Device Using A USB To Serial Port (VCP)?

Feb 19, 2010

I am communicating to a device using a USB to serial port (VCP). I am having a problem with the usb failing. When the usb fails my app will lock up and the com port is lost. I have seen a post about this but cannot find it.

View 3 Replies

Read XML From A Device Through A Serial Port?

May 13, 2011

My current program can read in a continuous stream of data when initialized and I can send a command to retrieve the devices stored data, I also have within the same program code that will read an XML file and populate from controls.

I have two separate idea's right now that I'm trying to merge into one

I want to read in XML and populate my controls. I'm aware of delegate and Invoke but I'm having a hard time working them into my XML portion or the opposite "working my XML into my serial port class".

View 14 Replies

[2005] Accessing Device On USB Port?

Nov 10, 2008

I have been doing some research into accessing devices on a USB port and it's kind of helped, but not really. From what I understand, I can use the IO.Port namespace to access a device on a USB port (usually). Let me know if this is incorrect.

First, I made a simple program that looped through the ports available. I get COM1 and COM3, but I have 4 USB ports. Where are the others?

My
Dim comm As New List(Of IO.Ports.SerialPort) 'list of comm ports
For Each PNstr As String In IO.Ports.SerialPort.GetPortNames() 'get a list of Com Port Names

[Code].....

View 13 Replies

App To View Which COM Port A USB-Serial Device Is Connected To?

Jul 14, 2011

I am currently having an issue finding information on how to develop a simple application that a user can run to find out which COM port ie. COM1, COM2, ect is assined to the Belkin USB to Serial Adapters we use in the company.

To anyones knowledge is this possible and how would I implement it in a Windows Form Application.

View 15 Replies

ASP.NET Webpage To Device Connect To Server's USB (COM) Port

May 19, 2009

I am working on a way to send commands to an Arduino board from a web site. The Arduino board is connected to the computer via a USB port (a COM port).

I have managed to connect and control the board using a VB.NET program. I also wrote a VB.NET class that can instantiate a COM connection and send and receive messages.

My next step is to basically create a program that will act as a proxy between my web server (IIS 7 running on Windows Vista) and the Arduino board. When a user gets to my ASP.NET page, the page will then send a command to the proxy to open the COM connection. When the connection is open and ready then I can send commands to the proxy. In turn, the proxy will send these commands to the board and listen for the responses it receives from the board. The proxy will then pass these messages back to the ASP.NET page.

The main issue I see occurring is that if a second user opens the web page and tries to open the COM port, there will be an error. Will this cause the first connection to fail? I guess I can first check if the port is already in use and give the second user a message. Are there any other potential challenges I am missing or not seeing?

View 1 Replies

Connect To External Device Using A Serial Port

May 25, 2010

I'm trying to connect to an external device using a serial port. I found a couple of tutorials with demo code and tried these. Unfortunately they all return the same gibberish unreadible result.[code]I'm sure my port settings are correct (I have the communication protocol of the device.)

View 20 Replies

How To Show All Available Serial Port In Device Manager

Jul 24, 2011

I have a windows form in vb.net. in my form have a combobox. I want in combo box show only all com ports that exist and available in device manager. How to do it?

View 5 Replies

VS 2005 Read Information From A Device Through COM Port

Sep 27, 2010

I'm trying to read information from a device through COM Port.. Sometimes I receive information like:

[Code]...

how I can change that? or detect it so whenever the program receives that type of info it ignores it?

View 2 Replies

Communications :: Close Serial Port After USB Device Unplugged?

Oct 1, 2009

There seems to be a lot of discussion around about handling exeptions when a USB serial port device gets unplugged. What I want to know is how can one re-attach to it once it is plugged back in. The problem is that if you unplug a USB serial port device the app doesn't know it has gone and remains convinced it is still open. I have to close the app completely before I can re-attach to the device. I need a way to force it to close/go away.

View 2 Replies

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

Jan 26, 2012

I'd try programming in vb.net 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

Use COMM Port 2 To Get Information From A Device. .NET Doesn't Support It Though

Feb 9, 2010

I am writing a VB.NET app that has a piece which needs to send a small command to comm port 2 and get the return result. The problem is .NET doesnt have any support for serial communication seems like.

I just need to send the command "headtype" and get the result.

View 2 Replies

Open A Communications Port And Read Data From A Wired Usb Device?

May 16, 2011

I know how to open a communications port and read data from a wired usb device.

How can I open a communications port to read data from a wireless bluetooth device?

View 5 Replies

Serial Port Checking If Open

Jul 20, 2010

In VB6 I had to always check if the port was open or not. But with VB.NET and the new Serial Port control I don't see any.If SerailPort1.Open then statements. In fact when I tried to use the code I got Expression does not produce a value.So does this mean that we no longer have to check to make sure the port closed?Is there a way to check if the port is open or not?

View 1 Replies

Creation Of Remote Server Checking Tool

May 25, 2011

I am new to Visual Basic (and programming in general) just wondering if there are any good tutorials on how to get my Visual Basic application to connect to a remote server.

View 8 Replies

SerialPort Escape String - Retrieving Data From A Device Connected To A Virtual Com-port

Aug 13, 2010

I am writing a small app that is retrieving data from a device connected to a virtual com-port. I connect without problems to the device using the settings 9600-8-N-1.

I need to send the command <esc>MS , the device then sends back the data to a computer. I have tried this using Hyperterminal with success. I also did this with Excel and VBA. I used the MSComm32 Active X control:

MSComm1.Output = Chr$(27) + "M" + "S" + Chr$(13)

Msgbox(MSComm1.Input)

This made the data from the device pop up in a messagebox. I am writing a winforms app in vb.net, using VS2005. I have a form, on which I have a Placed a SerialPort control, named sp. My sample code is as follows:

Private Sub Form1_Load(ByVal
sender As System.Object,
ByVal e

[CODE]...

This returns the error message "Error: expecting a command". I have done som tests in HyperTerminal, and have concluded with:

-If I dont send <esc>, I get error "Expecting a command"

-If I send wrong command (ie MD instead of MS) i get error "Bad command"

Based on this, I suspect that I don't pass the escape character correctly to my device. So I wonder how to do this?

View 5 Replies

Communicating With Remote Host & Port?

Oct 1, 2009

I've been trying for a long time to do what seems to be the most simplest of things..I have a remote host and I need to know if certain posts on that host are open or closed.Many examples on the net that I have found arent complete, and because I havent worked with VB.net for long I dont knowhow to complete them.Here is my code:: The issue is with this it tell me the target port is always closed, when I know that it is open.Code:Dim host As String = "www.google.com" Dim port As Integer = 80 Dim addr As IPAddress =CType(Dns.GetHostAddresses(host)(0), IPAddress) Try Dim tcpList As New TcpListener(addr, port)tcpList.Start() Catch sx As SocketException MessageBox.Show("port is closed") End TryA friend of mine suggested using WinSock.. I've not dealt with it before so I don't know what he's on about.

View 2 Replies

VS 2008 How To Access Com Port Of Remote Pc

Aug 15, 2009

i want to access com port of my remote pc. this pc is connected through LAN.how can i access com port of remote pc?

View 1 Replies







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