Ramesh Soni
Ramesh Soni

Reputation: 16077

Connect to a computer behind router in .net

We have a client server application which we are developing in .net. We want the server to push data to client. But the client is behind a router (like a home network setup). What are the various options to implement this in .net?

Upvotes: 1

Views: 378

Answers (3)

PaulG
PaulG

Reputation: 14021

The only way to push data to a client behind a router is if the client sets up some port forwarding on his router. Its something you'll generally want to avoid having to help the client configure.

Is it possible the client can instead periodically contact the server to check for data? In this scenario because the client makes an outbound connection it will be able to pull data back.

Upvotes: 2

stimms
stimms

Reputation: 44046

@Richard is correct, you're really asking about NAT. Another option is to have the client connect out to the server and pull in information that way.

Upvotes: 2

Richard
Richard

Reputation: 108975

Assuming the router includes NAT and Firewall, you need to configure the router to allow an inbound connection to be directed to the machine.

Upvotes: 2

Related Questions