0
我一直在试图将我的Nexus S连接到远程数据库(在本地计算机中设置)。无法使用我的Nexus S连接到远程数据库
在本地计算机中,我设置了一个MYSQL数据库,并且正在使用php访问它,我正在从我的Android应用程序中激活它。
当我使用HTTP post方法从模拟器测试它并连接到其他本地机器(服务器设置的位置)时,我的程序正常工作。
所以我想通了没有,当我尝试使用连接到它的一些连接问题我的Nexus S.
有人告诉有关使用外部IP或静态IP为本地计算机,同时连接到本地电脑,我无法弄清楚。
这是我在尝试连接并获取超时异常时得到的日志。
D/dalvikvm( 368): GC_EXPLICIT freed 4K, 51% free 3362K/6727K, external 1625K/2137K, paused 58ms
I/TelephonyRegistry( 107): notifyServiceState: 0 home Vodafone Vodafone 40445 (manual) UMTS CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false
I/TelephonyRegistry( 107): notifyDataConnection: state=2 isDataConnectivityPossible=true reason=null interfaceName=rmnet0 networkType=3
I/TelephonyRegistry( 107): notifyServiceState: 0 home Vodafone Vodafone 40445 (manual) HSDPA CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false
I/TelephonyRegistry( 107): notifyDataConnection: state=2 isDataConnectivityPossible=true reason=null interfaceName=rmnet0 networkType=8
I/TelephonyRegistry( 107): notifyServiceState: 0 home Vodafone Vodafone 40445 (manual) UMTS CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false
I/TelephonyRegistry( 107): notifyDataConnection: state=2 isDataConnectivityPossible=true reason=null interfaceName=rmnet0 networkType=3
I/TelephonyRegistry( 107): notifyServiceState: 0 home Vodafone Vodafone 40445 (manual) HSDPA CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false
I/TelephonyRegistry( 107): notifyDataConnection: state=2 isDataConnectivityPossible=true reason=null interfaceName=rmnet0 networkType=8
如果谁能给我就可以了
那么你想通过电话网络连接到你的家庭服务器电脑,或者你想通过无线网络连接到您的电脑通过本地网络? – Davos555
我试图从电话网络连接到我的办公室个人电脑的数据库服务器设置。 – user1111176
好的,所以你需要确保你可以通过你的办公室防火墙...你可能需要在应用中指定一个端口,在办公室路由器上将它映射到具有你的服务器应用的特定PC上。你可能已经做到了这一点 - 如果我不确定。 – Davos555