I have very simple app written in C#. I hosting it on IIS (my local PC with Windows 10).
There is my configuration on IIS (ADVANCED):
And my deploy profile from VisualStudio:
My hosts.txt:
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 local-app
127.0.0.1 http://local-app:8082/
I can browse my deployed app from my local PC, but i cannot browse it from another PC or mobile (connected via Wi-Fi in the same network).
What do I need to change to have access from other devices?
Regards
If you want to access the application through other devices, first you need to connect another computer or mobile device to the same LAN, and close the firewall or open the port bound to the website on the PC where IIS is located, and then you can type the IP+port in the browser to visit your site.
Below is the command to add a firewall rule to enable the port:
netsh advfirewall firewall add rule name="Open Port 80" dir=in action=allow protocol=TCP localport=80
You can try to use the ping command on other devices to interact with the device where IIS is located. If the interaction is successful, it means you can access.
Related
I want to run an simple web application on my industrial PC (based on raspberrypi) and host it on LAN. The purpose of the web application is that there is some kind of interface for the PC via WiFi. The PC has Debian OS running (without a graphical interface).
I made the ASP.NET Core Web Application on Windows with Visual studio 2019. When I run the application in visual studio, it all looks OK:
In order to run the app on Linux, I published the app (Self contained, Single File, linux-arm). On the PC I have configured some routes using iptables. I opened port 443 (HTTPS) and 80 (HTTP) to allow browser traffic through these ports. Both the ethernet and WiFi have a static IP. When I run the app, and browse to the page on another device via LAN the layout or something is all messed up. I don't know where to start because I have little to none experience with ASP.NET/ HTML / CSS.
I Also tried hosting it on Nginx, but i had the same result.
Can someone please help?:)
I am trying to run my SQL Server based Winform application from two computers which are connected in LAN.(Desktop PC, Laptop)
I followed MSDN and the below mentioned StackOverflow answers:
LINK 1 (Verified Answer)
LINK 2 (dyslexicanaboko's Answer)
I tried the below steps:
My Winform app's connection string:
<connectionStrings>
<add name="WinFormMetroTest.Properties.Settings.SampleDBConnectionString"
connectionString="Data Source=192.168.1.6\SAINSTANCE;Initial Catalog=SampleDB;User Id=sa;Password=bpmadmin1;Integrated Security=False;"
providerName="System.Data.SqlClient" />
</connectionStrings>
In my Laptop:
I have SQL Server 2008 R2 Enterprise edition, Windows 7 64bit Ultimate.
In SQL Server Configuration Manager, I enabled the protocol for TCP/IP for my instance "SAINSTANCE" and in the IP addresses, I specified TCP port as 1433 for all IPs. In IP4, I mentioned my Laptop's IP 192.168.1.6 and restarted SQL Server Instance and SQL Server Agent.
In Firewall setting, Inbound Rules - Specified TCP port as 1433
And finally I run my application in my Laptop, it gets connected to my DB and works perfectly.
In my Desktop PC:
I have Windows 64 bit Ultimate. I do not have SQL Server 2008 R2 or any other version here.
In Firewall setting, Inbound Rules - Specified TCP port as 1433
and also UDP port as 1434
Outbout Rules - Specified TCP port as 1433 and also UDP port as 1434
Now I ran my application in Desktop PC and it shows connection error.
I also disabled firewall completely in my Desktop PC and tried, it doesn't connect and shows the same error.
Please tell if I went wrong in any steps which I referred or provide possible fix for this.
Please comment if you require any further details about this issue.
I'm trying to publish a C# application using ClickOnce to an ftp server running Filezilla. I have taken care of port forwarding and firewall exceptions.
I can publish fine from the server itself, but when I try to publish from a different PC on a different network, it doesn't work.
I have tried both passive and active ftp modes, and it doesn't work with either of them. Active mode gives error 425 (can't open data channel).
I am developing an app for Windows CE with Visual Studio 2008.
If I connect the device via USB I can debug / deploy my app on the device.
But on the CE device the USB connection is just presented as another network interface with a private IP.
Now I am wondering If it is possible to dismiss the USB connnection an connect over the LAN (both my PC and the CE device are on the same subnet).
Yes it is possible, I do this at work. First you need to run IPConfig on the device and get the IP. Setup the IP in visual studio's connection properties. Next there are two executables and some files you need to copy to the device.. here this should explain
How to: Connect to Windows CE Device Without ActiveSync
Just execute those two exe's and you should be able to connect. BTW, debugging over ethernet is much faster and less buggy than activesync
I write the client app in iOS. I write the server side in WCF in Visual Studio. I use parallels to aces visual studio from my Mac. I run the service in IIS. Can I somehow acess the service from the iOS app. If I type http://127.0.0.1/ in internet explorer, it oppens IIS. But if I type http://127.0.0.1/ in safari, it doesn't recognize the address. How can I access the service from my iOS app?
127.0.0.1 is a local loopback address. You need to put your pc's local ip address in your safari browser use ipconfig in order to find it. In order to access the services through you ios app you need to use the NSMutableURLRequest from the iOS sdk.