ZeraKakkade Posted December 13, 2007 Share Posted December 13, 2007 Hi, How can i open external ports? $MainSocket = TCPListen($szIPADDRESS, $nPORT) is only for the pc port but how can i open my router port? Link to comment Share on other sites More sharing options...
PsaltyDS Posted December 13, 2007 Share Posted December 13, 2007 Hi,How can i open external ports?$MainSocket = TCPListen($szIPADDRESS, $nPORT)is only for the pc portbut how can i open my router port?You LISTEN on your own ports, and you CONNECT to remote ports.Look up TCPConnect(). Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
ZeraKakkade Posted December 14, 2007 Author Share Posted December 14, 2007 You LISTEN on your own ports, and you CONNECT to remote ports.Look up TCPConnect().I know that but...my pc has a direct connection to the internet all can write mybut if i CONNECT to remote ports nobody can read my message.A PC has two Ports:PC Network port (intern) - > i can open the port over the firewallRouter Port (extern) -> u must change the config of your Router (portforwarding)if i start the TCPRecv he ask me : would u like open the pots: if i klick yes he will only open the pc network port.but how can i open the routerport? like skype or msn? Link to comment Share on other sites More sharing options...
Confuzzled Posted December 16, 2007 Share Posted December 16, 2007 u must change the config of your Router (portforwarding)Ya got it in one!uPnP anyone?See also www.portforward.com Link to comment Share on other sites More sharing options...
PsaltyDS Posted December 16, 2007 Share Posted December 16, 2007 I know that but...my pc has a direct connection to the internet all can write mybut if i CONNECT to remote ports nobody can read my message.A PC has two Ports:PC Network port (intern) - > i can open the port over the firewallRouter Port (extern) -> u must change the config of your Router (portforwarding)if i start the TCPRecv he ask me : would u like open the pots: if i klick yes he will only open the pc network port.but how can i open the routerport? like skype or msn?The particulars depend on the router you have. In most home broadband NAT router/firewalls, you http into the router from the LAN side port (not WAN-side, admin from that should NEVER be enabled). With a username/password you get into a web based config for the router. From there, whatever port on the WAN (internet) side you want to be passed through is defined by associating the port with the LAN-side IP you want it to go to (your PC). Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
ptrex Posted December 16, 2007 Share Posted December 16, 2007 @ConfuzzledWindows supports the uPnP protocol by means of COM objectsUPnP Protocolregardsptrex 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...
Confuzzled Posted December 17, 2007 Share Posted December 17, 2007 @ConfuzzledWindows supports the uPnP protocol by means of COM objectsUPnP ProtocolregardsptrexThanks ptrex. Yep, it was a really brief and subtle hint I was dropping to ZK...uPnp works really well, unless you have a router that doesn't support uPnP (they are getting rarer these days) or running on an older version of Windoze, in which case manual router configuration is the fallback option, and www.portforward.com has a lot of extremely useful information to clarify how to do this for most routers out there. 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