Hi.

I am trying to connect to a device using IR on my computer/phone.

problem is that on the recieving end, there is no computer/IP Address and so on. its just a dumb IR which recieves data.

I cannot seem to connect to it as i get this error:

The system detected an invalid pointer address in attempting to use a pointer argument in a call


this is the code:

Code:
Socket theSock = new Socket(AddressFamily.Irda, SocketType.Stream, ProtocolType.Unspecified);
			
theSock.Connect(new IPEndPoint(IPAddress.None, 0));
any ideas on how to Connect to such a device? (this device could be a TV/VCR)

in the end, i just want to send signal to it