简体   繁体   English

我在Openshift中的diy应用程序的端口转发失败

[英]Failed port-forward for my diy application in Openshift

I have a java application with a server socket, but i don't know how to connect with another java web application in openshift. 我有一个带有服务器套接字的Java应用程序,但是我不知道如何在openshift中与另一个Java Web应用程序连接。 Looking in forums i saw i had to do port-forward to see wich ports i had to use in the connection between the web application(client) and the java application(server). 在论坛中查看时,我看到我必须做端口转发才能看到在Web应用程序(客户端)和Java应用程序(服务器)之间的连接中必须使用的端口。 But i have this error: 但是我有这个错误:

http://postimg.org/image/gjrrs80lp/ http://postimg.org/image/gjrrs80lp/

I did ssh -N 536(..) too, but it didn't work. 我也做了ssh -N 536(..),但是没有用。 I'm full blocked, i've never worked with sockets and ports and i'm blocked. 我已完全被阻止,我从未使用过套接字和端口,而且也被阻止了。 Thanks for the help guys ;) 谢谢你们的帮助;)

You might do better to read up on sockets and ports then. 然后,您可能会更好地阅读套接字和端口。 Can you give a specific error that you are getting? 您能给出一个具体的错误吗? If you are trying to use a non-supported port, then it will be blocked. 如果您尝试使用不受支持的端口,则它将被阻止。 If you want to do port forwarding between gears then you need to make sure you have a public/private key setup on your gears for that purpose and added to your account. 如果要在齿轮之间进行端口转发,则需要确保为此目的在齿轮上设置了公钥/私钥,并将其添加到您的帐户中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM