I am working on an ASP.NET application and I'd like the ability to test the application on my (Android) phone and iPad by connecting directly to my local IIS Express development server. I followed the instructions here on setting up IIS Express to allow remote connections. I am now able to view the application from another Windows machine on my local network by visiting http://my-computer-name:my-port-number/ in the browser. However, I am unable to view the application from any other platform (Android, iOS, and OS X - tested in both Chrome and Firefox); the browser silently churns away for a minute or so before giving me a generic "could not connect to my-computer-name:my-port-number" page.
What is the difference between the platforms that is disallowing me from viewing my ASP.NET application on non-Windows machines?
If your devices are on the same network, from the command prompt try ipconfig get the IP Address from your wireless and from your device try http://[IP Address]:[Port].
Like in this example:
http://192.168.2.122:5252
I am not an expert on Mac but if I recall correctly your issue may be associated with this:
http://www.wikihow.com/Add-a-Mac-to-a-Homegroup
What is the difference between the platforms that is disallowing me
from viewing my ASP.NET application on non-Windows machines?
The network to which they are connected. You seem to have mentioned that your Windows machine is connected to the same local network as the computer hosting the web application. But the other devices probably aren't. So make sure that those devices are connected to the same network.
Related
We have a system that includes a small PC with a website (developped in ASP.net 3.5 using VS 2010) and a SQL database, and some Windows CE 5.0 smart devices (running a homemade WinForm Compact Framework 2.0 software). Those systems are installed to many customers across the country.
Now, I need to be able to automatically update the website and the CE application remotely.
I developped a program that runs on the small PC and retrieve the files (by FTP) to be updated from a WebService in our office. The program executes the database scripts and copy the file to its intended destination locally.
Question: can we "packaged" the website to be deploy remotely? Having to copy every files to the remote PC is very cumbersome and not efficient.
Also: How can I update the software running on the smart device? IP addresses are unknown, they needs be on the DHCP without IP reservation, as we need to be able to hot-swap any devices without doing any configuration.
thanks a lot for your time and help
For both scenarios, the de-centrailized PC servers and the Windows Mobile clients you should consider a Remote Management System.
There is normally no way to push a file onto a windows mobile device, except for having an 'agent' running on the devices (i.e. a ftp server, or a Mobile Device Management Agent (ie by SOTI MobiControl or others).
You may provide a link to a CAB file (a windows mobile installation package) either on the remote servers or better on one central server) and let the users pick that by clicking it in a HTML page.
Are all the Windows Mobile devices by the same vendor and are the same models? Some industrial devices have software agents pre-installed. Some industrial devices also support download/setup via scanning a barcode.
I am working on a small website based on an example ServiceStack project. It is a standalone web app so that there is no need for IIS etc. Currently I start the server at http://localhost:8080 and opening the website in my local browsers seems to work fine.
My PC has a dedicated IP and I hope to test my server from another computer. I can successfully get a Python server running using python -m SimpleHTTPServer 8000, so network is working fine.
But the remote computer cannot access my ServiceStack server. I think there should be a simple setting somewhere to get it working. But I searched online, there is much information about IIS and ASP.Net. But my app is standalone and is independent of Asp.net. It is supposed to be running on Linux as well as on Windows. (Though I will only deploy on a Windows machine now.)
It will work fine on your local computer because the firewall doesn't block local traffic. If you want any other computer to access services running on your machine you will need to open the ports on the firewall.
This can be configured from the Windows Firewall in Control Panel
On my Windows 7 workstation at work, I use FlashBuilder 4.6 to debug iPad apps all the time. The process is simple and reliable -- start the debugger which begins waiting for the app to notify it, move the app into iTunes, move it onto the iPad, launch the app, the app notifies the debugger that it is running, debugging works!
At home I am running Windows 7 under the latest version of Parallels on my iMac running the latest version of Lion. I go through the same process: I connect my iPad (the same one from work) to the Windows VM, and Windows iTunes recognizes it and syncs files just fine. I can move a non-debugger version of the app onto the iPad and it runs just fine. However, when I start the debugger in FlashBuilder and then move the app onto the iPad and launch it, the app is not able to find the Flash Debugger. When it launches I just get a black screen for about 2 minutes, then I get a message asking me to enter the IP address of the Flash Debugger.
There is an old help document indicating that this is due to the iPad and then debugger host computer not running on the same wifi, but I don't think it's relevant. My workstation at work isn't even connected to wifi.
I will consider any advice. It's pretty important for me to get this up and running at home. I tried running directly under bootcamp, but both Microsoft and Adobe consider the bootcamp install to be a unique install of their products.
Thanks!
I think it's due to the VM environment. Make sure that your ipad is connected to the vm environment and not to the host.
It turns out that the "help document indicating that this is due to the iPad and the debugger host computer not running on the same wifi" was spot on. At my work environment, the wifi and the ethernet lan are on the same network. I was mistakenly assuming that the iPad and the debugger were communicating via the USB cable, but this is not the case. I think what happens is that FB embeds the ip address of its computer in the debuggable app. The app then connects to FB at that IP address.
My problem was that I had the Network Settings of my VM set to "Shared" under the Parallels hardware config set up. My VM then had a 10.211.55.x ip address instead of a 196.196.0.x ip address, which is the range of addresses on my LAN. Changing the setting to "Shared" fixed the problem.
I have as asp.net webserver that I hosted and I went to my mobile application I am building and made a web reference to it.
So it finds it and stuff and now I can access the web methods because of the wsdl generated. However when it tries to connect I get this:
Could not establish connection to network.
So do I have to enable something to make this work?
Take a look at this article. It explains how to setup your mobile device for internet connectivity.
Windows Mobile Emulator and Internet Connectivity
It's been awhile since i have had to do this. Perhaps it is as easy as Matt has suggested, I can remember having a hard time making this work with Windows Vista, Visual Studio 2005 and the Windows Mobile 5.0 Pocket PC Emulator. I've found a couple more articles, hope this helps.
HOWTO: Configure Network in Windows Mobile / PocketPC Device Emulator
Making Emulator to connect to the Network
I have used web services and rest based services via webrequests on the emulator without needing to configure the NE2000 adapters.
Change activesync or WMDC to connect using DMA (in wmdc: mobile device settings | connection settings, then set 'allow connections to one of the following' to DMA)
Then in VS2008, under tools select device emulator manager, and pick the emulator that is running, right click on it and select cradle, this should connect activesync/wmdc to the emulator and provide a network connection that is sufficient to communicate over http with web services.
I have a XP Pro and Vista machine setup on a workgroup LAN, normal case
with NAT router/adsl modem. Latop is wireless.
The XP Pro laptop has IIS on it and I have written an ASP.NET app.
When I try to access the app from browser on the Vista PC I get an error
saying can't connect to site.
I have tried the following:
Can ping the XP Pro PC from Vista PC.
Turned on Web access from windows firewall.
Rebooted.
When I telnet to it I get http 400 bad request.
Any thing I am not doing please?
Malcolm
Are you debugging your project using the ASP.net development server? I believe that server does not accept external connections.
If you've allowed access through the firewall, I'd suggest looking at your IIS settings for the website. Is anonymous access allowed? What sort of authentication are you requiring if not? Is the website actually running in the url you're requesting?
Lots of different problems occur because of IIS settings. Play with each possible cause, one at a time, until you find out what it is the real cause, if you still can't find it, play with two at a time.
When you finally find the problem, REMEMBER it, because problems with IIS tend to be forgotten and then you have to go through everything AGAIN. Sadly, I know this from experience.