Sunday, 19 May 2013

Behind two dhcp routers: referring/accessing to a computer directly over the internet (c#, XNA)

Behind two dhcp routers: referring/accessing to a computer directly over the internet (c#, XNA)

So I've been working on a networked game in C#/XNA lately and the networking itself went pretty well while we had only Static IP-s involved, the situation is:
My PC is behind a home router (which I have full control of and uses DHCP), and this router/subnet is behind a (probably) company router, because I'm getting my WAN IP through DHCP.
How am I supposed to refer/access My computer over the internet? Let's say, using the UdpClient.Send() function (which takes only an IPAddress and a Port as an IPEndpoint next to the data)? Or is this not even possible and I have to make a virtual network to be able to refer to the computers directly?
(Using the dhcp-d WAN address yields no success, and I have absolutely zero control over the company's router)

No comments:

Post a Comment