{"id":375,"date":"2020-02-09T04:02:18","date_gmt":"2020-02-09T03:02:18","guid":{"rendered":"https:\/\/codedoneright.eu\/?page_id=375"},"modified":"2020-07-25T04:09:38","modified_gmt":"2020-07-25T03:09:38","slug":"port-forwarding","status":"publish","type":"page","link":"https:\/\/codedoneright.eu\/?page_id=375","title":{"rendered":"Port forwarding"},"content":{"rendered":"\n<div style=\"height:56px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/2\/21\/Adsl_connections.jpg\/1920px-Adsl_connections.jpg\" alt=\"Example of a router on which you can perform port forwarding\" width=\"480\" height=\"320\"\/><figcaption>Your typical router \u2013 the only thing standing between your local devices and the internet<\/figcaption><\/figure><\/div>\n\n\n\n<p>Port forwarding is the last necessary step if you want your server to be accessible from the internet. Good news is that it is not that hard. Bad news is that I am unable to provide a universal guide. Each manufacturer has a different front-end for router configuration. Netgear, LinkSys etc. they all do it in a different way. Do not worry though as the topic is not that complicated.<\/p>\n\n\n\n<div style=\"height:56px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Static IP<\/h4>\n\n\n\n<p>Before you begin make sure that your Raspberry has a static IP address or is assigned the same IP every time it connects to your network. Port forwarding assumes that the IP address of your server on your local network does not change!<\/p>\n\n\n\n<p>Find out the local address of your Raspberry <a href=\"https:\/\/codedoneright.eu\/?page_id=176\">here<\/a>.<\/p>\n\n\n\n<p>Static IP tutorial is in the works.<\/p>\n\n\n\n<div style=\"height:56px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Find out the make and model<\/h4>\n\n\n\n<p>First of all you need to find the make and model of your router so that you know what instructions to look for. It is always somewhere on your router, usually in a form of a sticker with a serial number, place of manufacturing etc. This is the most important piece of information you need.<\/p>\n\n\n\n<div style=\"height:56px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Check if configuration information is on the router<\/h4>\n\n\n\n<p>Some manufacturers include instructions on how to get to configuration page right there on the router. Usually next to the sticker with make and model at the bottom. Look for a local IP address. It will be in a form of 192.168.xxx.xxx. In addition to the address you should be able to find a login and a password for the admin configuration page. <\/p>\n\n\n\n<div style=\"height:56px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Looking for information online<\/h4>\n\n\n\n<p>If the required information is not on your router you might have to resort to online search. Your first stop should be <a href=\"http:\/\/portforward.com\">portforward.com<\/a>. They have a massive library of instructions divided by make and model. You will find a detailed step-by-step guide for both common and uncommon models alike. Do not be alarmed if your exact model is not there and check out a sister model instead. Manufacturers often do not change configuration panel between similar models and you might find that AB-1100, which is not listed, can be configured using instructions for AB-1000. Passwords and login information will, most likely, be the same as well.<\/p>\n\n\n\n<p>You can also search for the information simply typing something along those lines in your search engine<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>netgear wnr2000 port forward<\/code><\/pre>\n\n\n\n<p>Either way you should end up having the following information<\/p>\n\n\n\n<ul><li>Router configuration address page<\/li><li>Router admin user<\/li><li>Password for admin user<\/li><\/ul>\n\n\n\n<p><strong>CAUTION <\/strong>some modern routers require only password to log in. It is implied that there is only one user who is supposed to make changes. There is really no need to have any extra users, so it only asks for password. Devices that your ISP is giving you when you sign up for the internet usually work this way. Just the password.<\/p>\n\n\n\n<div style=\"height:56px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Logging into your router<\/h4>\n\n\n\n<p>This one is simple. Just type the IP address you have found into your web browser \u2013 this will take you to configuration page. Bear in mind that the device you are using to log in HAS to be connected to the router. You cannot just use 4G from your phone to connect to your router.<\/p>\n\n\n\n<p>Once the page loads just put the username and password.<\/p>\n\n\n\n<p><strong>CAUTION <\/strong>configuration panel allows you to make more changes than just port forwarding. Do not change any settings unless you are a 100% sure that you need to change them. It is tempting to change stuff and see what it does, but just do not. Stick to what you know.<\/p>\n\n\n\n<div style=\"height:56px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Finding port forwarding section in the configuration panel<\/h4>\n\n\n\n<p>Once logged look for a tab\/section called <em>port forwarding<\/em>. It can be a standalone section or can be a subsection of <em>Security<\/em>, <em>Advanced settings<\/em> or something else. Click through the panel to find it, <strong>unless <\/strong>you make and save changes rummaging around is harmless. <\/p>\n\n\n\n<div style=\"height:56px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Actual port forwarding<\/h4>\n\n\n\n<p>Now that you have found the correct settings page you can finally begin to make changes. <\/p>\n\n\n\n<p>You should see a page with a table describing rules that are in place. If there are none, the table will be empty. But it will look something along those lines<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/portforward.com\/linksys\/wrt600n\/WRT600N3.jpg\" alt=\"port forwarding rules on LinkSys router\"\/><figcaption>LinkSys configuration panel. Image credit <a href=\"http:\/\/portforward.com\">portforward.com<\/a><\/figcaption><\/figure><\/div>\n\n\n\n<p>In order to forward any traffic to your server you will have to forward a port utilizing that traffic to your Raspberry. You might need to click on <em>Add rule<\/em> or a similar button, if you cannot put the information directly into the table.<\/p>\n\n\n\n<p>The easiest way to show you will be on an example.  Put the following information into the table in order to direct http (website) traffic to your server<\/p>\n\n\n\n<ul><li>External port \u2013 80<\/li><li>Internal port \u2013 80<\/li><li>Protocol \u2013 Both<\/li><li>IP address \u2013 local IP address of your Raspberry Pi<\/li><li>Enabled \u2013 tick the box \/ select <em>Yes<\/em> (model dependent)<\/li><\/ul>\n\n\n\n<p>Bear in mind that you will have to forward ALL ports that your services use. If you want to be able to SSH outside of your network then you need to forward port 22 to your server, for outgoing mail \u2013 port 465 etc.<\/p>\n\n\n\n<p>If you have Apache server installed and your RPi is running, try putting your external IP in the browser. It should show the website that Apache is serving from your RPi!<\/p>\n\n\n\n<div style=\"height:56px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Conclusion<\/h4>\n\n\n\n<p>As you can see, port forwarding is not difficult, you just need some basic information and the knowledge of which ports need to be open. I will include the list of ports that will need to be forwarded in each service tutorial instead of dumping a long list here. Why open ports to services you do not actually use?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Port forwarding is the last necessary step if you want your server to be accessible from the internet. Good news is that it is not that hard. Bad news is that I am unable to provide a universal guide. Each&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":71,"menu_order":17,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Port forwarding &#8212; Code Done Right! Open yourself to internet!<\/title>\n<meta name=\"description\" content=\"Learn about port forwarding from this short tutorial. Get your server accessible from the internet. This is the last step before opening your doors!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codedoneright.eu\/?page_id=375\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Port forwarding &#8212; Code Done Right! Open yourself to internet!\" \/>\n<meta name=\"twitter:description\" content=\"Learn about port forwarding from this short tutorial. Get your server accessible from the internet. This is the last step before opening your doors!\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/2\/21\/Adsl_connections.jpg\/1920px-Adsl_connections.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codedoneright.eu\/?page_id=375\",\"url\":\"https:\/\/codedoneright.eu\/?page_id=375\",\"name\":\"Port forwarding &#8212; Code Done Right! Open yourself to internet!\",\"isPartOf\":{\"@id\":\"https:\/\/codedoneright.eu\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codedoneright.eu\/?page_id=375#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codedoneright.eu\/?page_id=375#primaryimage\"},\"thumbnailUrl\":\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/2\/21\/Adsl_connections.jpg\/1920px-Adsl_connections.jpg\",\"datePublished\":\"2020-02-09T03:02:18+00:00\",\"dateModified\":\"2020-07-25T03:09:38+00:00\",\"description\":\"Learn about port forwarding from this short tutorial. Get your server accessible from the internet. This is the last step before opening your doors!\",\"breadcrumb\":{\"@id\":\"https:\/\/codedoneright.eu\/?page_id=375#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codedoneright.eu\/?page_id=375\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codedoneright.eu\/?page_id=375#primaryimage\",\"url\":\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/2\/21\/Adsl_connections.jpg\/1920px-Adsl_connections.jpg\",\"contentUrl\":\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/2\/21\/Adsl_connections.jpg\/1920px-Adsl_connections.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codedoneright.eu\/?page_id=375#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codedoneright.eu\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Raspberry Pi server\",\"item\":\"https:\/\/codedoneright.eu\/?page_id=71\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Port forwarding\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codedoneright.eu\/#website\",\"url\":\"https:\/\/codedoneright.eu\/\",\"name\":\"Code Done Right!\",\"description\":\"Raspberry Pi server guides\",\"publisher\":{\"@id\":\"https:\/\/codedoneright.eu\/#\/schema\/person\/50378701e349dbd5d40888bc5b532568\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codedoneright.eu\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/codedoneright.eu\/#\/schema\/person\/50378701e349dbd5d40888bc5b532568\",\"name\":\"CodeDoneRight\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codedoneright.eu\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/codedoneright.eu\/wp-content\/uploads\/www_icon.png\",\"contentUrl\":\"https:\/\/codedoneright.eu\/wp-content\/uploads\/www_icon.png\",\"width\":120,\"height\":120,\"caption\":\"CodeDoneRight\"},\"logo\":{\"@id\":\"https:\/\/codedoneright.eu\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/codedoneright.eu\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Port forwarding &#8212; Code Done Right! Open yourself to internet!","description":"Learn about port forwarding from this short tutorial. Get your server accessible from the internet. This is the last step before opening your doors!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codedoneright.eu\/?page_id=375","twitter_card":"summary_large_image","twitter_title":"Port forwarding &#8212; Code Done Right! Open yourself to internet!","twitter_description":"Learn about port forwarding from this short tutorial. Get your server accessible from the internet. This is the last step before opening your doors!","twitter_image":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/2\/21\/Adsl_connections.jpg\/1920px-Adsl_connections.jpg","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/codedoneright.eu\/?page_id=375","url":"https:\/\/codedoneright.eu\/?page_id=375","name":"Port forwarding &#8212; Code Done Right! Open yourself to internet!","isPartOf":{"@id":"https:\/\/codedoneright.eu\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codedoneright.eu\/?page_id=375#primaryimage"},"image":{"@id":"https:\/\/codedoneright.eu\/?page_id=375#primaryimage"},"thumbnailUrl":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/2\/21\/Adsl_connections.jpg\/1920px-Adsl_connections.jpg","datePublished":"2020-02-09T03:02:18+00:00","dateModified":"2020-07-25T03:09:38+00:00","description":"Learn about port forwarding from this short tutorial. Get your server accessible from the internet. This is the last step before opening your doors!","breadcrumb":{"@id":"https:\/\/codedoneright.eu\/?page_id=375#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codedoneright.eu\/?page_id=375"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codedoneright.eu\/?page_id=375#primaryimage","url":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/2\/21\/Adsl_connections.jpg\/1920px-Adsl_connections.jpg","contentUrl":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/2\/21\/Adsl_connections.jpg\/1920px-Adsl_connections.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/codedoneright.eu\/?page_id=375#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codedoneright.eu\/"},{"@type":"ListItem","position":2,"name":"Raspberry Pi server","item":"https:\/\/codedoneright.eu\/?page_id=71"},{"@type":"ListItem","position":3,"name":"Port forwarding"}]},{"@type":"WebSite","@id":"https:\/\/codedoneright.eu\/#website","url":"https:\/\/codedoneright.eu\/","name":"Code Done Right!","description":"Raspberry Pi server guides","publisher":{"@id":"https:\/\/codedoneright.eu\/#\/schema\/person\/50378701e349dbd5d40888bc5b532568"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codedoneright.eu\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/codedoneright.eu\/#\/schema\/person\/50378701e349dbd5d40888bc5b532568","name":"CodeDoneRight","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codedoneright.eu\/#\/schema\/person\/image\/","url":"https:\/\/codedoneright.eu\/wp-content\/uploads\/www_icon.png","contentUrl":"https:\/\/codedoneright.eu\/wp-content\/uploads\/www_icon.png","width":120,"height":120,"caption":"CodeDoneRight"},"logo":{"@id":"https:\/\/codedoneright.eu\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/codedoneright.eu"]}]}},"_links":{"self":[{"href":"https:\/\/codedoneright.eu\/index.php?rest_route=\/wp\/v2\/pages\/375"}],"collection":[{"href":"https:\/\/codedoneright.eu\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/codedoneright.eu\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/codedoneright.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codedoneright.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=375"}],"version-history":[{"count":18,"href":"https:\/\/codedoneright.eu\/index.php?rest_route=\/wp\/v2\/pages\/375\/revisions"}],"predecessor-version":[{"id":1195,"href":"https:\/\/codedoneright.eu\/index.php?rest_route=\/wp\/v2\/pages\/375\/revisions\/1195"}],"up":[{"embeddable":true,"href":"https:\/\/codedoneright.eu\/index.php?rest_route=\/wp\/v2\/pages\/71"}],"wp:attachment":[{"href":"https:\/\/codedoneright.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}