I have developed a web client and a web service which works fine in my localhost.
The next step for me is to test it in other PC from my network.
I send my IP to my friends lets say: 195.50.12.65. From another pc they can't access my client.
So i try this: "http://195.50.12.65/MyWebServices2/WebApp.aspx" (without the double quotes) and nothing.
Next thing I open a port 80 from my firewall and still nothing any ideas on what to do next?
Note: my client and service are program in C#, using the notepad, asp.net and the IIS, not using Visual Studio (don't ask why, I am just not using it)
Related
I wrote a wcf service and I am trying to use it from my application.
I succeed to deply it on another PC which has IIS installed.
I open a new virtual Directory and paste all the files including service.svc, web.config, APP_Data
I am able to right-click on the svc file, click Browse and get a window telling that the service is created.It also give me the path to test my service.
From my client application, I am trying to add the service using "Add Service reference", I am pasting the path I got from the Browse button:
http://[MyIP]/PrintService/Service1.svc?wsdl, then clicking on Go but I am getting a message:
There was an error downloading 'http://[MyIp]/PrintService/Service1.svc?wsdl/$metadata'.
Unable to connect to the remote server
For diagnostics purposes only, turn off your firewall momentarily. If that solves the problem then turn your firewall back on immediately again, go to your windows firewall advanced settings and create an Inbound Rule allowing your service/port number to get through.
Using IP address for services isn't the right approach. you can add that spesific host name to your hosts file. Using computer name is the best for development environment. because you are getting different ip each time most of the networks. Or for just development if your loopback adapter is rightly configured you can use 127.0.0.1 but it is not the best practise.
i have a emulator (from Xamarin Studios, its a android) now i develop a app for this emulator, they must be connect to the web Service (localhost), which i write with C# in Visual Studio. But the emulator dont connect to the localhost and dont can see the site. I want to write a webservice with any functions (connect to database, select, update and so on) and i want that the app can connect to this web service and can be use the function.
i hope someone can help me.
greetz
Your Android emulator's localhost will be the Android emulator itself. You will need to connect to your webservice using the actual IP address of your machine. If you are running your webservices using the VS host, keep in mind that it will not serve to non-local addresses by default.
Host that service in your IIS
then call by HTTP methods with url like
http://localhost(or Ip address)/Urservicename.svc/ServicefunctionName
I was wondering if anyone could help - I have a local network (wireless, my computer and a laptop connected to it) and I've tried hosting a rest service developed with ServiceStack on it. If I run the application on the computer (a console app for now) and try to access the service using the machine IP or 127.0.0.1 it works fine - but if I try and access it from the laptop, using the computer's IP it simply stalls, and the REST service is never called.
I've tried turning off all firewalls etc, running everything in Admin mode but still nothing.. am I missing something simple to get this working?
Any help is much appreciated!
Some of the code samples (My AppHost class is inheriting from the AppHostHttpListenerBase)
restServiceToStart.Value.Init ();
restServiceToStart.Value.Start (_HostUri);
where for my main machine, the _HostUri is set to "http://my-ip-address:8080/"
You haven't listed the code you use to start your AppHost (please be descriptive when asking questions) so I'm going to assume you're not listening to http://*:{port}/, e.g. from the Self Hosting wiki:
var appHost = new AppHost();
appHost.Init();
appHost.Start("http://*:1337/");
The * wildcard says to listen on every local network interface.
I am currently running Windows 7 through Parallels on my Mac(mountain lion). I developed a web service using Visual Studios 2010. I am able to access the web service when I "Start program without debugging" but I still can't access the web service through another web browser (Chrome, Firefox, Safari).
Here is what I have done so far:
At first I thought it was something wrong with my network connection between OSX and Win 7 so I bridged the network through airport between OSX and Win 7. But for some reason the IP addresses are still different MAC (192.168.1.121) WIN 7(192.168.1.131). So I guess this could still be the problem.
The next thing I did was changed how Visual Studios starts the program from Visual Studio Development Server to Local IIS Server as was suggested through something that I found on the internet.
So my question is how can I access the webservice through another web browser using parallels?
for some reason the IP addresses are still different MAC (192.168.1.121) WIN 7(192.168.1.131)
Yes, it is supposed to be so, because they are different machines and have to have different IPs
Do you able to access the service from browser started in the same VM using address 127.0.0.1?
If yes, do you able to access it from Mac using IP-address of Win7?
If 2 fails, then you should try to disable Firewall in Win7 VM, most likely it blocks access to service.
I'm developing a mobile application (on visual strudio 2005 sp1) and I get this exception when I try to reach the web service(written on sap). But this is not all.
When I run the app on emulator on computer(connecting internet with cable) it works fine. Also I installed the app to mobile device and no problem BUT only with cradle, I mean only works when it connected to computer with cable of cradle.
Problem starts if the app try to connect web service via wireless connection of our customer's internet.(unplugging from cradle).
I figured out that if I write the WSDL link in IP form, device connects to web service(on wireless)(but not via code, by copying link to text file and clicking to it) but on other form device can't find web service's page. I added the IP of web service to hosts file but problem still exists.
I solved this problem by taking web service address from sap transaction sicf.