- Newest
- Most votes
- Most comments
Hello.
Is your application listening on port 7777 on your EC2?
If you are on Linux, you can use the following command to check if you are listening using a port number.
If nothing is displayed after executing the command, the application is not running and the application should be started on EC2.
sudo lsof -i:7777
What you intend to do is just allow inbound traffic with destination port 7777 and any random source IP?
Guess you already attach elastic ip on your EC2 eni, so next you should do is add a allow traffic with destination port 7777 rule to Security group you attaching EC2 during your initial instance provisioning.
thanks for reply. i have attached security group with ec2 instance that i want to connect my game. i just want to connect my game with that instance ip with port 7777 which show closed. it opened and work properly if i first run server through my Linux system by command ./game_server and then connect as client in my game. i want to connect directly in my game. want to skip linux system work
Relevant content
- Accepted Answerasked 3 months ago
- asked 4 months ago
- asked 5 years ago
- asked 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago
thankyou for instant reply . yes i checked and it shows the port is closed. it opens when i run server on linux in my system. but i didn't able to open through directly on my game.
Aren't applications on Lightsail always running? It might be possible to solve this problem by having Lightsail automatically execute the command when it is started. Try the following file with the command to run the application.