Click here to Skip to main content
15,917,862 members
Home / Discussions / C#
   

C#

 
AnswerRe: Socket.Select() Bug? Pin
leppie21-Jun-05 10:45
leppie21-Jun-05 10:45 
GeneralWritting to a ListBox from another class Pin
cmacgowan21-Jun-05 7:45
cmacgowan21-Jun-05 7:45 
GeneralRe: Writting to a ListBox from another class Pin
S. Senthil Kumar21-Jun-05 8:34
S. Senthil Kumar21-Jun-05 8:34 
GeneralRe: Writting to a ListBox from another class Pin
IamJunk21-Jun-05 17:36
IamJunk21-Jun-05 17:36 
GeneralRe: Writting to a ListBox from another class Pin
cmacgowan22-Jun-05 7:17
cmacgowan22-Jun-05 7:17 
Generaltelnetting to a router Pin
reveal21-Jun-05 7:06
reveal21-Jun-05 7:06 
GeneralRe: telnetting to a router Pin
reveal21-Jun-05 7:07
reveal21-Jun-05 7:07 
GeneralRemoting thru firewalls Pin
Judah Gabriel Himango21-Jun-05 6:21
sponsorJudah Gabriel Himango21-Jun-05 6:21 
I have a .NET server application on a machine with a static IP address who publishes a singleton object:

MyServerObject obj = new MyServerObject();
RemotingServices.Marshal(obj, "TheServerObjectIsHere.remote");


The client publishes his listener object to the server, and connects to the server:

// Publish our client object that the server will use to talk to us.
MyClientObject obj = new MyClientObject();
RemotingServices.Marshal(obj, "TheClientObjectIsHere.remote");

// Connect to the server object:
MyServerObject serverObj = RemotingServices.Connect("tcp://someStaticIpAddress/TheServerObjectIsHere.remote");
serverObj.Hello(); // This works fine


However, the server needs to connect to the client object, who's published object is on some network outside the LAN. Since the client object is not on the server's LAN,

RemotingServices.Connect("tcp://someLanAddress/TheClientObjectIsHere.remote")


will not work, because the server isn't on the same LAN, therefore a client address like "tcp://10.10.10.1/Client.remote" means nothing to the server.

So my question is, how does .NET remoting work over a WAN or the internet? Or, if you specifically have knowledge in this area, how can I connect to a MarshalByRefObject when it is on a different network?

Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Conversation With a Muslim
Judah Himango


GeneralRe: Remoting thru firewalls Pin
DeepToot21-Jun-05 14:55
DeepToot21-Jun-05 14:55 
GeneralPassing special characters in a string Pin
CheckDude21-Jun-05 5:49
CheckDude21-Jun-05 5:49 
GeneralRe: Passing special characters in a string Pin
IamJunk21-Jun-05 6:02
IamJunk21-Jun-05 6:02 
GeneralRe: Passing special characters in a string Pin
mav.northwind21-Jun-05 6:58
mav.northwind21-Jun-05 6:58 
GeneralRe: Passing special characters in a string Pin
CheckDude21-Jun-05 16:08
CheckDude21-Jun-05 16:08 
QuestionHow do i create a savestate? Pin
Anthony Mushrow21-Jun-05 5:48
professionalAnthony Mushrow21-Jun-05 5:48 
AnswerRe: How do i create a savestate? Pin
IamJunk21-Jun-05 6:05
IamJunk21-Jun-05 6:05 
GeneralSecure Conversation doesn't work with second web service Pin
Member 186329021-Jun-05 5:07
Member 186329021-Jun-05 5:07 
GeneralMultiple connections Pin
Micu Radu21-Jun-05 4:53
Micu Radu21-Jun-05 4:53 
GeneralRe: Multiple connections Pin
CheckDude21-Jun-05 5:36
CheckDude21-Jun-05 5:36 
GeneralRe: Multiple connections Pin
Luis Alonso Ramos21-Jun-05 17:16
Luis Alonso Ramos21-Jun-05 17:16 
GeneralRe: Multiple connections Pin
Micu Radu24-Jun-05 0:29
Micu Radu24-Jun-05 0:29 
GeneralRe: Multiple connections Pin
Luis Alonso Ramos24-Jun-05 6:17
Luis Alonso Ramos24-Jun-05 6:17 
GeneralCrystal Reports / Data horizontally & vertically Pin
V.21-Jun-05 3:53
professionalV.21-Jun-05 3:53 
GeneralC# Project Pin
celebrate21-Jun-05 3:52
celebrate21-Jun-05 3:52 
GeneralRe: C# Project Pin
V.21-Jun-05 3:58
professionalV.21-Jun-05 3:58 
GeneralRe: C# Project Pin
Luis Alonso Ramos21-Jun-05 16:37
Luis Alonso Ramos21-Jun-05 16:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.