简体   繁体   English

连接到在 Ubuntu 实例上分配私有 IP 的服务器

[英]Connect to server assigned Private IP on Ubuntu Instance

I hope I'm asking this clearly.我希望我问清楚了。 I connected to a fresh Ubuntu 64-bit Amazon EC2 server with SSH and have set up a Server that uses the IP 172.30.0.72:27015 and it is ONLINE, and my Amazon Security is set to allow all ports.我使用 SSH 连接到一个全新的 Ubuntu 64 位 Amazon EC2 服务器,并设置了一个使用 IP 172.30.0.72:27015 的服务器,它处于在线状态,我的 Amazon Security 设置为允许所有端口。

When I type netstat -atunp | grep srcds_linux当我输入netstat -atunp | grep srcds_linux netstat -atunp | grep srcds_linux it shows: netstat -atunp | grep srcds_linux它显示:

tcp   0   0     0 172.30.0.72:27015   0.0.0.0:*  LISTEN  1277/sccds_linux
udp   0   0     0 172.30.0.72:27015   0.0.0.0:*          1277/sccds_linux
udp   0   0     0 172.30.0.72:26901   0.0.0.0:*          1277/sccds_linux

When I try to access this from outside, I can't.当我尝试从外部访问它时,我不能。 Do I need to be figuring out how to port forward?我需要弄清楚如何向前移植吗? If so, I know my public IP is 55.174.94.92, how do I connect my client to the server that has the Private IP address?如果是这样,我知道我的公共 IP 是 55.174.94.92,如何将我的客户端连接到具有私有 IP 地址的服务器? I also know how to make it static with elastic IP's, but haven't done that until I get this to work first.我也知道如何使用弹性 IP 使其静态化,但直到我先让它工作后才这样做。

use the public IP to connect.使用公网IP连接。 To access your service at 172.30.0.72:27015 use 55.174.94.92:27015.要在 172.30.0.72:27015 访问您的服务,请使用 55.174.94.92:27015。 If you are no able to do it, then check your security group settings.如果您无法执行此操作,请检查您的安全组设置。

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

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