Wcf
Wcf
Wcf
Wcf
Wcf
Wcf Wcf Wcf Wcf Wcf Wcf Wcf Wcf
Wcf Wcf
Wcf
Go Back  Xtreme Visual Basic Talk > > > Wcf


Reply
 
Thread Tools Display Modes
  #1  
Old 03-24-2012, 05:04 PM
rplp4 rplp4 is offline
Junior Contributor
 
Join Date: Apr 2005
Posts: 247
Default Wcf


Can WCF be used communicate through the internet? All the examples I have found show it being used on a local network. If it so, does anyone know where to find help on this? Or does anyone of a better method to communicate to a computer that is not local?
Reply With Quote
  #2  
Old 03-25-2012, 09:26 AM
PlausiblyDamp's Avatar
PlausiblyDampWcf PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
 
Join Date: Nov 2003
Location: Newport, Wales
Posts: 2,058
Default

If you are using a http based endpoint then wcf is more than happy to work over the internet.

All you would need is the address of the remote server and access to it's wsdl and VS can take care of the rest via the Add Service Reference option.
__________________
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote
  #3  
Old 03-25-2012, 03:09 PM
rplp4 rplp4 is offline
Junior Contributor
 
Join Date: Apr 2005
Posts: 247
Default

Thank you for the help. Do you know of any examples/tutorials on this. How do I know the address of the remote server?
Reply With Quote
  #4  
Old 03-25-2012, 06:22 PM
PlausiblyDamp's Avatar
PlausiblyDampWcf PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
 
Join Date: Nov 2003
Location: Newport, Wales
Posts: 2,058
Default

Are you going to be connecting to an existing server or hosting the server yourself?
__________________
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote
  #5  
Old 03-26-2012, 07:32 AM
rplp4 rplp4 is offline
Junior Contributor
 
Join Date: Apr 2005
Posts: 247
Default

Hosting myself. I have a computer in the office I need to connect to. I can do this as long as I am on the same network using the local IP address to the copmputer I need to connect to. But do not know how to open the server computer to the world?
Reply With Quote
  #6  
Old 03-26-2012, 07:48 AM
PlausiblyDamp's Avatar
PlausiblyDampWcf PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
 
Join Date: Nov 2003
Location: Newport, Wales
Posts: 2,058
Default

The server would need an externally accessible address to be contacted from the outside world. This would normally entail a reconfiguration of your firewall to allow / forward a particular exteranl ip and port to the correct ip and port of the WCF server.
__________________
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote
  #7  
Old 03-26-2012, 08:44 AM
rplp4 rplp4 is offline
Junior Contributor
 
Join Date: Apr 2005
Posts: 247
Default

Do you know where I can find help on how to get it to the outside world?
Reply With Quote
  #8  
Old 03-26-2012, 09:30 AM
PlausiblyDamp's Avatar
PlausiblyDampWcf PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
 
Join Date: Nov 2003
Location: Newport, Wales
Posts: 2,058
Default

If the server is hosted on your corporate network then you would need to speak to whoever manages your corporate firewall.
__________________
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote
  #9  
Old 03-26-2012, 03:26 PM
rplp4 rplp4 is offline
Junior Contributor
 
Join Date: Apr 2005
Posts: 247
Default

This is all new to me so excuse my basic questions. I am confused on what this has to do with a firewall? What if I do not use a fire wall?
Reply With Quote
  #10  
Old 03-26-2012, 04:04 PM
PlausiblyDamp's Avatar
PlausiblyDampWcf PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
 
Join Date: Nov 2003
Location: Newport, Wales
Posts: 2,058
Default

I would imagine that if you have a network at work you don't have every single pc connected with a live external address and absolutely nothing to protect them from the internet - if this is indeed the situation then I would be quite alarmed in all honesty.

If you need the server hosting the WCF service to be accessible from the internet then the server will need to be contactable from the internet - this would normally entail either plugging the server directly into the internet and assigning a valid internet ip address to the server or preferably having a firewall between the server and the internet. This firewall would need to be configured to allow external addresses to access the WCF service.

If this configuration has been done (or if the server has a live address) then you should be able to connect to it by using it's ip address.
__________________
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote
  #11  
Old 03-26-2012, 04:59 PM
rplp4 rplp4 is offline
Junior Contributor
 
Join Date: Apr 2005
Posts: 247
Default

Maybe I am not asking the right question. Yes at the office there is a firewall but the computer that I will need to have as a server may or may not have a fire wall it would depend on the person using the app. The question is does anyone know of a tutorial or can explain how to make a computer addressable from the outside?

Quote:
Originally Posted by PlausiblyDamp View Post
If you need the server hosting the WCF service to be accessible from the internet then the server will need to be contactable from the internet - this would normally entail either plugging the server directly into the internet and assigning a valid internet ip address to the server
How can I make the server "contactable from the internet"?

I think I may have found an anwser here http://www.nch.com.au/kb/10046.html#router
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Wcf
Wcf
Wcf Wcf
Wcf
Wcf
Wcf Wcf Wcf Wcf Wcf Wcf Wcf
Wcf
Wcf
 
Wcf
Wcf
 
-->