Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hiya all,

 

I'm trying to create a sample Peer 2 Peer chat application. However, I'm having trouble with Network Address Translation (NAT). Programs like MSN/Windows Messenger use NAT (I know they aren't coded in C# :)). However, when I'm sending or listening for information I'm using TCP Listeners and Clients. The example I'm using is at http://www.cshrp.net/content.aspx?showID=547.

 

When I run my application I have to route the ports on my home server. Is there any way I can connect to applications over the internet and not have to worry about configuring port routing?

 

 

Thank you for your time.

 

Brent Newbury

Posted

In most modern networks you need to forward the ports to keep you machines secure.

To allowing so that you do not have to forward the ports would mean that you are allowing the machine to the wide world.

 

Some systems will allow you to use a proxy server to formard the network traffic. Have a look at this example http://www.mentalis.org/soft/projects/proxy/

 

Hiya all,

 

I'm trying to create a sample Peer 2 Peer chat application. However, I'm having trouble with Network Address Translation (NAT). Programs like MSN/Windows Messenger use NAT (I know they aren't coded in C# :)). However, when I'm sending or listening for information I'm using TCP Listeners and Clients. The example I'm using is at http://www.cshrp.net/content.aspx?showID=547.

 

When I run my application I have to route the ports on my home server. Is there any way I can connect to applications over the internet and not have to worry about configuring port routing?

 

 

Thank you for your time.

 

Brent Newbury

Glenn "Mykre" Wilson, DirectX MVP

Inner Realm

Managed DirectX and Game Programming Resources

Posted

Hiya Mykre,

 

I agree with what you said about port forwarding however, Windows/MSN Messenger do not need any port forwarding to be setup (well, they aren't on my Windows Server 2003 home server). I was wondering how this was accomplished.

 

 

Thank you for your time,

 

Brent Newbury

Posted

With Almost all MS Products they are intergrated. When you install MSn on Windows XP with the firewall active the install package sets up the connection.

 

I know that if you setup a windows xp machine and have multiple applications installed... Then install SP2 most of those applications will not work (There is a list on MS on the applications that are afected, This is also one of the big complaints of SP2), You then have to add the ports and connections to the firewall system.

Glenn "Mykre" Wilson, DirectX MVP

Inner Realm

Managed DirectX and Game Programming Resources

Posted
On another note if you wish to setup an application that opens or configures the firewall, you might want to have a look at the documentation on MS about rolling out firewall settings. This is mainly designed for administrators to mass upgrade there network, but you might be able to create a install addin that would configure the opening

Glenn "Mykre" Wilson, DirectX MVP

Inner Realm

Managed DirectX and Game Programming Resources

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...