Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You need to open it in any firewall that's between you and the world. That means your router needs the port opened and a port forwarding rule to your server, your server's firewall needs the port opened, and any other NATs or firewalls need the port opened and/or port forwarding rules set up.
Its an ubuntu server...i dont think there is a router...how and i dont installed any firewall...how i can check if there is a router and how to open and forward port?
I believe Ubuntu uses iptables, you'll need to add a rule to let that traffic through.
If you run "ifconfig", does the IP address listed for your network adapter match the one displayed on www.whatismyip.com ? If not, then you have a router doing NAT, possibly built into your ISP's modem. You'll have to consult the documentation for your router to see about opening ports in the firewall and adding a port forwarding rule.
If you run "ifconfig", does the IP address listed for your network adapter match the one displayed on www.whatismyip.com ? If not, then you have a router doing NAT, possibly built into your ISP's modem. You'll have to consult the documentation for your router to see about opening ports in the firewall and adding a port forwarding rule.
You've posted your public IP (not a great idea, you should edit your post to remove it), but you haven't posted your private IP, so you still haven't answered the question.
Yes, and now what is your machine's private IP? Run "ifconfig" and find the inet address for your network adapter.
If this matches your public IP, then your machine has a public IP already and is directly facing the internet, which means you just need to add the iptables rule. If this does NOT match your public IP, then you have a router/NAT that's creating a subnet for your machine, which means in addition to adding the iptables rule, you'll also need to add a hole in the router's firewall and add a port forwarding rule to push incoming connections on port 5500 to your machine's private IP.
Last edited by suicidaleggroll; 06-17-2015 at 10:42 AM.
There are a lot of howtos on that, which will cover iptables operation in much more depth than I can here. Just search Google for "add exception to iptables". Almost all of the top 10 results are walkthroughs/guides that show you how to configure it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.