Setting up SFS2X with ec2 instance using Amazon Linux

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
PatheticLion
Posts: 2
Joined: 06 Mar 2024, 00:54

Setting up SFS2X with ec2 instance using Amazon Linux

Post by PatheticLion »

Hi all,
Just got into building my first game with some friends and we are trying to set up SFS2X to allow us in a lobby together. I spun up an amazon free tier account and launched a t2.micro instance using Amazon Linux. I followed the instructions, and got the service started on the machine.

In AWS, I created a security group that I applied to the box.
Inbound Rules :

UDP : port 9933 | source ::/0
TCP : port 9933 | source ::/0
TCP : port 8080 | source ::/0
TCP : port 80 | source ::/0

I then navigate to http://x.x.x.x:8080 (obviously substituting x's for the real public IP) and it gives me nothing. Just "this site can't be reached". The service looks to be running fine on the box, I am obviously missing something on either end that's blocking or just straight up now allowing this connection. Anyone have an idea what I'm missing?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Setting up SFS2X with ec2 instance using Amazon Linux

Post by Lapo »

Hi,
when using AWS you need to configure the so called "Security Group" which is their fancy name for a firewall :)
Check the Security Group associated with your EC2 instance and add a few inbound rules to allow traffic for the ports you've listed above.

That should fix it.
Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
PatheticLion
Posts: 2
Joined: 06 Mar 2024, 00:54

Re: Setting up SFS2X with ec2 instance using Amazon Linux

Post by PatheticLion »

Hi Lapo - I appreciate your reply!

I have already done what you described, however. I created the security group for all the inbound rules I listed in my initial post, and applied that group directly to the ec2 instance that has SFS2X installed. I am still unable to acccess the Admin page.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Setting up SFS2X with ec2 instance using Amazon Linux

Post by Lapo »

Try telnetting the server on the http port.
Example:

Code: Select all

telnet <ip-address> 8080

Do you get a connection?
(Similarly you can do the same with port 9933, to check if it's open)

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply