问题描述
所以我主要完成了我的应用程序,我准备在其他计算机上测试它。
问题是我的连接字符串有。对于本地主机而言我并不确切知道应该放在那里。
我想要的是以下内容,我将创建一个无线网络我的电脑上的接入点与所述提示以下代码:
netsh的WLAN集hostednetwork模式=允许SSID = YOURFRIENDLYSSID键= SOMEPASSWORD
netsh wlan启动hostednetwork
这将使我的机器成为服务器,我想让其他机器连接到该无线网络并连接到我桌面文件夹内的.mdf。
就C#的代码而言,我该如何在连接字符串中实现它?
而且我也不知道在ipconfig中使用哪个IP,是不是我的无线适配器?
提前谢谢!
So I mostly finished my application and I''m ready to test it on other computers.
Problem is that my connection string has the . for the localhost and I don''t know exactly what I should put in there.
What I want is the following, I''m going to create a wireless access point on my computer with the following code on the prompt:
netsh wlan set hostednetwork mode=allow ssid=YOURFRIENDLYSSID key=SOMEPASSWORD netsh wlan start hostednetwork
This will make my machine the server, and I want to make the other machines connect to that wireless network and connect to the .mdf that is inside a folder in my desktop.
In terms of code for C#, how should I implement this in the connection string?
And I also don''t know which IP to use in the ipconfig, is it my wireless adapter?
Thanks in advance!
这篇关于使用IP地址连接到mdf数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!