![](/img/trans.png)
[英]Can a web application hosted on another machine receive data from a local .NET application without sending data to the server?
[英]In a hosted website ,embed web pages from other local web server
我托管一個網站,因為我從其他服務器(本地托管在其他服務器上)調用了幾個網頁。 我將這些頁面嵌入到iframe中。
<iframe src="http://192.168.1.11 /DSS/DashboardEngine.aspx?DashboardID=Muda\PSI\OverviewWL" scrolling="auto" runat="server" width="99.8%" height="475px"></iframe>
當我訪問其本地網絡中的網站時,嵌入的頁面顯示得很好
如果我從外部訪問網站,則那些嵌入的頁面正在提供本地URL訪問問題。
我們如何在托管網站上有效地從其他本地服務器調用這些本地網頁。請幫助。
用戶瀏覽器請求iframe的內容。 如果用戶的瀏覽器無法訪問該IP地址,則將無法訪問該內容。 您正在使用本地IP地址192.168.1.1,可以從網絡內部ping通,但是在網絡外部將無法訪問。
就像您對瀏覽器說的一樣,您可以閱讀一個網站,然后將其顯示在iframe邊框內。
http://192.168.1.11 /DSS/DashboardEngine.aspx
需要像
http://yourdomain.com/DSS/DashboardEngine.aspx
您還可以選擇在服務器端訪問該內容並將其包含在響應中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.