| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|
|||||||
| C-Sharp Programming Post questions, answers, and comments about C#. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How do I open a router port?
I want to connect 2 computers one of them is connected to a router, and therefore it blocks unknown ports.
what do I do? |
|
#2
|
|||
|
|||
|
Re: How do I open a router port?
18 views with no reply?
|
|
#3
|
|||
|
|||
|
Re: How do I open a router port?
Not really a question for programming forums. You will need to check out the manual on your SPECIFIC type of router.
|
|
#4
|
|||
|
|||
|
Re: How do I open a router port?
Quote:
![]() http://projects.qnetp.net/projects/show/mono-nat
__________________
www.monotorrent.com For all your .NET bittorrent needs NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling. |
|
#5
|
||||
|
||||
|
Re: How do I open a router port?
Use an OPEN port on the router. No program can change the router settings. But, all routers have SOME open ports turned on by default. Find one...
__________________
David CodeGuru Article: Bound Controls are Evil-VB6 101 Samples: VB & C# VS2008 Samples CodeGuru Reviewer 2006 Dell CSP 2006, 2007 & 2008 MVP Visual Basic If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!
|
|
#6
|
|||
|
|||
|
Re: How do I open a router port?
Quote:
__________________
www.monotorrent.com For all your .NET bittorrent needs NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling. |
|
#7
|
|||
|
|||
|
Re: How do I open a router port?
I want to connect 2 computers via C# with a component (like winsock in VB6) . For that I will have to get IP and port from the client, but when I tried To connect the 2 computers one of them (the computer which is connected to the router) couldn't connect because the router blocked the port.
|
|
#8
|
|||
|
|||
|
Re: How do I open a router port?
Quote:
As I stated above, you need to read the manual for the router and see how to open the ports on that SPECIFIC router. They are all different. We can't help you on this. Now if you replace the router with a switch or hub, and are still having problems, then you need to check the firewall on the computers. And if you still have problems, check the AntiVirus/Network Security. Symantec, now has what is call "EndPoint Protection". Their version of the firewall and believe me, it sucks. After you go through all this, if there is a programming error, then we can probably help you. |
|
#9
|
|||
|
|||
|
Re: How do I open a router port?
Quote:
This is not possible, but there are standardised ways of doing this.
__________________
www.monotorrent.com For all your .NET bittorrent needs NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling. |
|
#10
|
|||
|
|||
|
Re: How do I open a router port?
Although it can be possible, you can not count on a router either implementing these features, or having them turned on. My particular router has UPnP, but is turned off by default. Each particular router is going to be different, so he has to start there. And for the most part, the easiest thing to do for computers communicating, is going to be open a port on the router, so the 2 computers can talk. Then, as in my post above, you will also need to check the Firewall, and the AntiVirus/Security Software to make sure those aren't stopping the communication.
|
|
#11
|
|||
|
|||
|
Re: How do I open a router port?
Quote:
Quote:
Quote:
Anyway, the question has been answered and there isn't really much else of use which can be added to the topic. Hopefully the above makes sense.
__________________
www.monotorrent.com For all your .NET bittorrent needs NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling. Last edited by Mutant_Fruit; August 31st, 2009 at 04:03 PM. |
|
#12
|
|||
|
|||
|
Re: How do I open a router port?
So how does MSN, ICQ, SKYPE connects between computers even if they are connected to a router?
|
|
#13
|
|||
|
|||
|
Re: How do I open a router port?
I will be more than glad of you will answer my question abobe (how do ICQ,MSN,SKYE can connect 2 computers even if they are connected to a router)..
|
|
#14
|
|||
|
|||
|
Re: How do I open a router port?
MSN and ICQ work differently than SKYPE. MSN and ICQ are both Client-Server applications meaning they don't connect each computer together to chat. They have a server that all the clients connect to and the server distributes the messages to the proper computer. SKYPE on the other hand is a Peer-to-Peer application which means that when you call someone on skype you host the call on your own computer.
The point is regardless of how you connect two computers the router shouldn't inter fear with the exception of maybe opening a port aside from that the router does nothing but filter the IP packets. If the port is open you don't need to touch the router in code. If it isn't open then you need to manually open it through the router. |
|
#15
|
|||
|
|||
|
Re: How do I open a router port?
Both MSN[0] and Skype [1] use uPnP to open ports in the router if it is available. I've attached a screenshot of the ports they've opened. As you can see i have a dynamic IP
uPnP is what allows you to get fast file transfers in msn, there is no other way to configure the port it uses.[0] http://url.ie/2d5f [1] http://share.skype.com/sites/garage/...windows_b.html
__________________
www.monotorrent.com For all your .NET bittorrent needs NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling. |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|