草庐IT

remote-host-num

全部标签

.net - 快速提问 TCP/IP .Net Remoting

我有一个客户端应用程序,我在其中收集数据并将其存储在类数据包结构中。我可以将此类的对象发送到我的服务器应用程序吗?..这两个应用程序都在通过LAN网络连接的不同机器上运行。在.NetRemoting中,Object在Server中实例化,Objref与Client共享。现在我将这个Packet类的对象作为远程对象,用作客户端激活的对象。对象在客户端激活时创建。publicclassPacket:MarshalByRefObject{publicintsvrnumber;publicstringsvrname;[NonSerialized]publicstaticIObserverObs

sql-server - 谷歌搜索设备 : com. microsoft.sqlserver.jdbc.SQLServerException : The TCP/IP connection to the host "xyz" port 1433 has failed.

我正在为数据库(SQL)部署GoogleSearchAppliance连接器。当我运行“run.bat”时,我在日志中收到一条错误消息:java.io.IOException:com.microsoft.sqlserver.jdbc.SQLServerException:TheTCP/IPconnectiontothehost"xyz",port1433hasfailed.Error:"null.Verifytheconnectionproperties.MakesurethataninstanceofSQLServerisrunningonthehostandacceptingTCP

php - $_SERVER ['REMOTE_ADDR' ] php var 是否基于用户 TCP/IP?

是否100%保证$_SERVER['REMOTE_ADDR']变量基于用户TCP/IP,因此始终可靠? 最佳答案 不,没有100%的保证。当用户使用代理互联网地址时,您将获得误报地址。 关于php-$_SERVER['REMOTE_ADDR']phpvar是否基于用户TCP/IP?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/22297625/

tcp - How to host a TcpClient/listener online(我想在线托管我的聊天服务器)

我有一个聊天服务器,是我为我的窗口电话应用程序创建的。现在它在我的本地计算机上运行,​​我如何让它在线以便每个人都可以连接到它。聊天服务器:TcpListenerchatServer=newTcpListener(4296);聊天客户端:TcpClientclient=newTcpClient("127.0.0.1",4296);如何转发端口以便我可以在线托管它! 最佳答案 为了让全世界都能看到它,您需要使用公共(public)IP地址将其托管在某个地方。然后您将在客户端连接中使用此IP地址:Chatclient:TcpClient

Git error:‘fatal: Couldn‘t find remote ref master‘

如果出现该错误提示,可能是因为使用了旧命令:gitpulloriginmastermaster现在被认为是有种族歧视的,github将其换成了main,所以现在使用pull可以写为:gitpulloriginmain如需要将已有repos的master换为main,可依照以下步骤:1-重命名本地分支:gitbranch-mmastermain2-重命名远程分支gitcheckoutmaingitpush-uoriginmain3-删除远程分支mastergitpushorigin--deletemaster4-告知团队中的其他人更新他们的本地库,方法如下:#Switchto"master"br

vb.net - 如何处理TCPListener "An existing connection was forcibly closed by the remote host"

我有一个使用TCPListener和异步方法BeginAcceptTCPClient的TCP服务器:ImportsSystem.Net.SocketsImportsSystem.ThreadingImportsSystem.NetPublicClassTCPServerPrivatemPortAsIntegerPublicEventIncomingMessage(ByValMessageAsString,ByValIPAsString)'Thissignalsthreadpoolthreadstostop...PrivatemStopServerAsManualResetEventPr

c# - 无法在 127.0.0.1 端口 555 上打开 TCP channel (SocketException : No Such Host Is Known)

我已经在127.0.0.1端口555上运行Quartz调度程序Windows服务大约2年了。从几天前开始,我无法再开始我的服务。当我查看代码时,我发现无法启动TcpChannel对象。IChannelchan;chan=newTcpChannel(props,null,formatprovider);当我在我的cmd上执行netstat时,我没有在Listening或Established中找到地址。我在我的防火墙上也找不到任何与此端口有关的新规则。该服务基于Quartz.net调度程序。服务日志:2016-02-2510:19:58,847[9]INFOQuartz.Impl.Std

c# - 套接字异常 (0x80004005) : An existing connection was forcibly closed by the remote host

希望有人可以帮助解决这个异常(exception)。我们的客户端应用程序最多可以生成3个服务器应用程序(新进程)并通过TCP与每个应用程序进行通信。这些在出现提示时又生成一个jvm(服务器应用程序本质上是一个通过共享内存与jvm通信的包装器)。当我将每个jvm上的内存设置为大约25gb(我有8gbram)时,它不会运行3个服务器应用程序中的任何一个并抛出上述异常。当我将它设置为10gb时,它将运行其中一个,但在我尝试启动第二个jvm时抛出该异常。当我尝试启动jvm(在它进行第一次java调用之前打印日志语句)时似乎发生了异常,但是此异常仅在客户端捕获。我想知道这是否是服务器端的stac

heroku - 使用 Ruppell 的套接字插件在 Heroku 上托管 TCP 服务器时出现 "Connection closed by foreign host"错误

我正在尝试在Heroku上托管一个简单的TCP服务器。我正在使用Ruppell'sSocketsHerokuaddon.我的Procfile看起来像这样:web:bundleexecrubyweb.rb-e"production"-p$PORTsocket:./lib/sockets-connect/rs-connruby./tcpserver.rbtcpserver.rb看起来像这样:require'eventmachine'moduleEchoServerdefpost_initputs"--someoneconnectedtotheechoserver!"enddefreceiv

java - 错误 :The TCP/IP connection to the host has failed. java.net.ConnectException:连接被拒绝:连接

我正在使用window7NetbeansIDE7.1.2SQLServerManagementStudioExpress2005JDK1.6连接数据库时出现以下错误:com.microsoft.sqlserver.jdbc.SQLServerException:TheTCP/IPconnectiontothehosthasfailed.java.net.ConnectException:Connectionrefused:connect我的连接字符串是:Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");Conne