WCF Services hosted in IIS is not accessing using mobile network? - wcf

WCF Services hosted in IIS is not accessing using mobile network???
I have WCF services hosted in IIS server and i have a windows 8 App as client for consuming the WCF service. when my laptop and mobile is Connected with Wifi. My Mobile app getting the data from Service but when i turned off the wifi for mobile only and trying to access the wcf service from mobile internet then i am not able to get the data.
Can anyone know how to expose the WCF service for any kind of network??

Related

Web Socket server stops working on IIS

I have server on my IIS that contains WCF Service "MyService.svc" which works with net.tcp protocol and generic handler (Device.ashx file, which works with web socket connection). My desktop app is a client that connects to "MyService.svc" by net.tcp protocol. Also i have mobile apps which connects to Device.ashx by websocket protocol. Everything seems good but i have one problem. After some time mobile apps can't connect to the server, but desktop app working good. Should I look for problem in IIS settings or in my code?

Calling a net.tcp wcf service from Silverlight - in an external facing web site?

I have an external (public) website developed in Silverlight. The Silverlight app currently calls http based wcf services hosted in IIS.
I am now having to call a wcf service with net.tcp binding hosted in a different app server. I have the net.tcp wcf service hosted in a windows service on port range 4502-4530 and with an interface to expose clientaccesspolicy.xml file as part of the service. I am able to invoke this service from my Silverlight app in the web server. I want the SL app to make direct call to net.tcp, rather than routing the call to it from another http based service.
Question is will this work without any issues when exposed over internet.
Client browser --> IIS webserver with Silverlight website --> App Server with wcf service on net.tcp.
I am assuming in this case, from XAP SL would try to make direct call to the app server service using net.tcp ?
The communication between the web server and app server could be opened up for ports 4502-4535. But I am wondering what about the client. Does this setup require the ports to be available even in the clients machine (with browser)?
Any insight is much helpful.
Thanks.
Take a look at http://support.microsoft.com/kb/2425652; there is sample code included as well! If you setup clientaccesspolicy.xml correctly; it should work as long as clients can access your TCP server.
If your clients are behind some firewall which is blocking your server's ports; they may face connectivity issues!

WCF service secure so that only my METRO APP Client can call it

I have a WCF service hosted on AZURE. Also I have a metro app client that consumes that WCF service.
I want to make my WCF service secure so that only my METRO APP Client can consume that WCF service i.e. NO other Metro app or any application except my ABC (metro app name) METRO APP be able to consume the WCF service. I am a newbie to Metro app and WCF. It would be grateful if any one could share some help.

got EndpointNotFoundException when consuming WCFService in A webrole from B webrole

I have a webrole for hosting a web application, and another webrole for hosting a WCF service. Now I have got my WCF service webrole published on windows Azure, but the webrole with web application is not since I am still developing it. Then when I try to consuming the WCF service which has published on cloud in the web application, it gives the error:EndpointNotFoundException, the inner exception is remote server is not found.
But actually, I can comsuming the WCF service in a web application which is not a Azure project. so is it because web application in one webrole can't consume WCF service in another webrole?
It should be able to as long as they both aren't in Azure. At that point you will need an InternalEndpoint instead for them to communicate through. Did you add it as a web reference in Visual Studio and that worked correctly? Can you browse to the WCF service from the browser and see it? My guess would be that it has the wrong port, maybe you just manually updated the reference after publishing it to Azure.

WCF REST on windows service

I have hosted WCF REST service on windows service on my machine. I can access the service from my system but not able to do the same from some other system in network. I tried hosting it on internet and got the same problem. Any possible cause of the problem ?