ACalcutt Posted January 16, 2006 Share Posted January 16, 2006 I just got a Dlink DSM 320 and have been looking for a good media server. my favorite so far has been http://www.tversity.com/. but i was wondering if it would be possible to make my own server in autoit. i would have no idea how i would do this, but does anyone here have an idea Andrew Calcutt Http://www.Vistumbler.net Http://www.TechIdiots.net Its not an error, its a undocumented feature Link to comment Share on other sites More sharing options...
Oxin8 Posted January 16, 2006 Share Posted January 16, 2006 That would be quite a project from what I gather... If it was me, I'd google around for code of anyone else who might have done it(in autoit or any other language you can understand). If I couldn't find anything, I'd pick apart the Dlink media server that you can download off the site to see how it works. Maybe use their dll(if that's how it works) and just make your own interface or something. Sorry if that doesn't help much... ~My Scripts~ *********_XInput UDF for Xbox 360 ControllerSprayPaint_MouseMovePlus Link to comment Share on other sites More sharing options...
Home Bunny Posted November 8, 2007 Share Posted November 8, 2007 I just got a Dlink DSM 320 and have been looking for a good media server. my favorite so far has been http://www.tversity.com/. but i was wondering if it would be possible to make my own server in autoit. i would have no idea how i would do this, but does anyone here have an idea I was looking around with the same idea , currently there are already projects that could make this happen: WebServer: http://www.autoitscript.com/forum/index.ph...=nfwu+webserver Implementing HTML Skins: http://www.autoitscript.com/forum/index.php?showtopic=30564 UPnP Implementation: Now we come to the part where i'm stuck. for making a UPnP compliant webserver, we need to broadcast with SSDP. The best article i found so far is from Zac Bowling. I was hoping that someone could point me in the direction of how to broadcast packets with UDP to adress 239.255.255.250:1900 with message: M-SEARCH * HTTP/1.1 Host:239.255.255.250:1900 ST:upnp:rootdevice Man:\"ssdp:discover\" MX:3 --- PS: My personal favourite Upnp AV Media server is WIZD Link to comment Share on other sites More sharing options...
ptrex Posted November 9, 2007 Share Posted November 9, 2007 (edited) @all expandcollapse popupUDPStartUp() $start = 1 $socket = UDPbind("127.0.0.1", 65000) ; OR ?? $socket = UDPOpen("239.255.255.250", 1900) ConsoleWrite($socket[1] & "|" & $socket[2] & "|" & $socket[3] & @LF & @LF) $cmd = 'M-SEARCH * HTTP/1.1' & @CR $cmd &= 'Host:239.255.255.250:1900' & @CR $cmd &= 'ST:upnp:rootdevice' & @CR $cmd &= 'Man:ssdp:discover' & @CR $cmd &= 'MX:3' & @CR $cmd &= @CR $cmd &= @CR ConsoleWrite($cmd & @LF) UDPSend($socket, $cmd) sleep (2000) UDPSend($socket, $cmd) While (1) ; If ($start = 1) Then $srcv = UDPRecv($socket, 512) If ($srcv <> "") Then ConsoleWrite("Received Response" & @CR) ConsoleWrite($srcv & @CR) EndIf ; EndIf WEnd Func OnAutoItExit() UDPCloseSocket($socket) UDPShutdown() EndFunc I am not sure about the UDPBind or UDPOpen to do the broadcast ? Please test and let us know if it works ? regards ptrex Edited November 9, 2007 by ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
ptrex Posted November 13, 2007 Share Posted November 13, 2007 @allAdded some UPnP support examples in here : UPnP example scriptRegardsptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
Home Bunny Posted November 22, 2007 Share Posted November 22, 2007 Thx Ptrex.I skipping the UPnP Protocol, as this is only available for Windows XP.I've managed to get the SSDP Broadcast, and my Linksys router is reponding to my broadcast.The problem now, is that the repons is going back to the source port of my broadcast.How can we find out what my source port is when i do a "UDPSend" to a predefined destination port.expandcollapse popup$p = "" $p = $p & "M-SEARCH * HTTP/1.1" & @CRLF $p = $p & "Host:239.255.255.250:1900" & @CRLF $p = $p & "ST:upnp:rootdevice" & @CRLF $p = $p & "Man:" & """" & "ssdp:discover" & """" & @CRLF $p = $p & "MX:3" & @CRLF $p = $p & @CRLF UDPStartup() ;============================================== $socket = UDPOpen("239.255.255.250", 1900) If @error <> 0 Then MsgBox(0,"Error","Unable to Bind") Exit EndIf $n=0 While 1 If $n < 4 Then $status = UDPSend($socket, $p) If $status = 0 then MsgBox(0, "ERROR", "Error while sending UDP message: " & @error) Exit EndIf EndIf Sleep(1000) $data = UDPRecv($socket, 50) If $data <> "" Then MsgBox(0, "UDP DATA", $data, 1) Exit EndIf $n = $n + 1 WEnd Func OnAutoItExit() UDPCloseSocket($socket) UDPShutdown() EndFuncHow did i found out that my router is reponding?, Microsoft Network Monitor 3.1Any Ideas how to proceed? Link to comment Share on other sites More sharing options...
ptrex Posted November 24, 2007 Share Posted November 24, 2007 @Home Bunny Sorry for the late reply but I was abroad all week, though life expandcollapse popup$p = "" $p = $p & "M-SEARCH * HTTP/1.1" & @CRLF $p = $p & "Host:239.255.255.250:1900" & @CRLF $p = $p & "ST:upnp:rootdevice" & @CRLF $p = $p & "Man:" & """" & "ssdp:discover" & """" & @CRLF $p = $p & "MX:3" & @CRLF $p = $p & @CRLF UDPStartup() ;============================================== $socket = UDPOpen("192.168.1.1", 1900) ; Here is where you have to point to the address of you device in your network If @error <> 0 Then MsgBox(0,"Error","Unable to Bind") Exit EndIf $n=0 While 1 If $n < 4 Then $status = UDPSend($socket, $p) If $status = 0 then MsgBox(0, "ERROR", "Error while sending UDP message: " & @error) Exit EndIf EndIf Sleep(1000) $data = UDPRecv($socket, 50) If $data <> "" Then MsgBox(0, "UDP DATA", $data, 1) Exit EndIf $n = $n + 1 WEnd Func OnAutoItExit() UDPCloseSocket($socket) UDPShutdown() EndFunc Try this code again filling in the IP address of your device in you network where I have indicated this. It's good that you went all the way down to the protocol level . I must admid that I did the same thing after a while. Regards, ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now