TCP connection to MAC address

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello,

I would like to convert to following process to code. Any advice is
welcome.

I have a hardware device which requires the this procedure to set it's
IP address. First create an static ARP entry for the device's MAC
address and the desired IP address. Then telnet to this IP address on
TCP port 1. This will set the device to temporarily respond to that IP
address. Now you can use HTTP to access the device's web interface and
explicitly set it's IP address.

Basically it looks like creating a TCP connection on port 1, based on
MAC address instead of IP address, then a normal TCP connection on port
80 to do an HTTP POST and set the IP address. The first step may be a
little more involved, since the IP address will have to be included
somewhere.

Please excuse any stupid/misinformed questions - I'm completely new to
C#, and .net for that matter (coming from a VB6 background). I'm
currently using the 2005 Express edition, if that makes any difference.

Regards,
Nicolas

*** Sent via Developersdex http://www.developersdex.com ***
.



Relevant Pages

  • Re: TCP connection to MAC address
    ... you have no way of communicating with it on the network. ... > would like to write a small utility where I can simply enter the MAC ... > Basically it looks like creating a TCP connection on port 1, ... > port 80 to do an HTTP POST and set the IP address. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Problem printing through firewall
    ... While a job is lingering in the print queue, ... > to setup a TCP connection to the printer on port 515. ... > all telnetting to the printer on port 515 from the HP-UX machine). ... When two print jobs are sent ...
    (comp.sys.hp.hpux)
  • UCX and dangling sockets
    ... A few times we've seen situations where a TCP connection attempts ... It usually occurs when attempting to start a Roboeda listener on port ... The symptoms are that the listener process dies with the address is ... All the timers I think could be involved are measured in seconds; ...
    (comp.os.vms)
  • Re: ModSSL - Knoppix 3.3
    ... if, as you stated, you can indeed establish a tcp connection to ... port 443 from a remote client and the server shows connection ... most likely not a firewall issue but probably an apache server ... After you add an ErrorLog directive, telnet to port 443 from a remote ...
    (Focus-Linux)
  • Re: Multiple local ports in system.net.sockets class
    ... service use multiple 'conversations' within the single IP connection. ... using a different local port will by definition require a new TCP connection. ... Knowing what "Dart" is is not a prerequisite to knowing how to use .NET Sockets, and so you are unnecessarily limiting your potential audience by comparing your problem to something "like Dart". ...
    (microsoft.public.dotnet.languages.csharp)