Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Friends,

Is there any way I can check if a certain computer (connecting to a network) is getting blocked by a firewall. I have remoted my project and am trying to run my UI App on one machine and a remote business server on another. Now, I have also implemented a Web service that provides the same function but is for clients outside of our network. I would like to have a check where I could identify if there is a firewall. If so, switch my application to connect to the Web service rather than the remote server.

 

I dont know if Im making sense here, but it'd be good to know if we could have a utility that checks for firewall presence.

 

Thanks,

DTM

Posted

There's no way to "probe" a network from over the Internet to see if it's utilizing a firewall.

 

If you're running a remoting server on a machine that's on a LAN (which is connected to the Internet) and you're not able to connect to it over the Internet then it is likely that the port the remoting server is using is not mapped to the internal IP of the system it is running on.

 

.NET Remoting runs over TCP or HTTP (which runs on TCP). TCP requires a IP/port endpoint to connect to. Since the remoting client is sending an unsolicited TCP connection request it will be killed by the piece of hardware (router) where the NAT is taking place.

 

You need to get a port mapped to your internal IP. If you don't have access to this, then you will not be able to initiate remoting sessions from over the Internet. Using the Web Service route would be your best bet. You could try to connect to the remoting server first and, if that fails after a certain period of time, switch over to the Web Service.

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...