{"id":198,"date":"2019-05-15T09:14:03","date_gmt":"2019-05-15T08:14:03","guid":{"rendered":"https:\/\/synt4x.org\/blog\/?p=198"},"modified":"2019-05-15T09:14:03","modified_gmt":"2019-05-15T08:14:03","slug":"moving-the-servers-physical-location-and-carrier-grade-nats","status":"publish","type":"post","link":"https:\/\/synt4x.org\/blog\/index.php\/2019\/05\/15\/moving-the-servers-physical-location-and-carrier-grade-nats\/","title":{"rendered":"Moving the server&#8217;s physical location, and carrier-grade NATs."},"content":{"rendered":"\n<p>So for the past several years, my server that is hosting this blog has been located at my father&#8217;s place. The only real reason for this was because his upload speed was 100Mbit\/s and the one I have at home is 100Mbit down, but only &#8220;up to&#8221; 10Mbit\/s upload. So even though it made it slower to access files on the server from my own home compared to if I just had it located there, it made more sense to have it at my father&#8217;s since it would mean that everyone that accesses it has the potential of downloading from it at 100Mbit\/s.<\/p>\n\n\n\n<p>But now, an era has passed, and my father is switching to a new ISP. In fact, he&#8217;s switching to the same ISP that I have at home, ComHem. Which means the upload speed at his place will also be &#8220;up to&#8221; 10Mbit\/s. So after learning this I decided that it was time to move the server to my home instead, since now the upload speed will be the same regardless. And it also means that while I am at home I have gigabit access to the files which is nice.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>So we move it to my place and I hook everything up. Everything just works with my network, as expected. I didn&#8217;t really change anything on the server itself so it should just work. Then I go to open the ports in my router, which it does allow me to do. But to my horror, I notice that the ports don&#8217;t appear to actually be opened to the outside world.<\/p>\n\n\n\n<p>I google around quite a bit, and find info that suggests that ComHem utilizes a carrier-grade NAT (CGN) solution which basically means that I&#8217;m screwed. They have an internal NAT, where my public IP is assigned to many different customers, and obviously I can&#8217;t open the ports in ComHem&#8217;s routers. So I decide to give them a call to see if there&#8217;s anything I can do about the situation.<\/p>\n\n\n\n<p>I call them up the next day, and get to speak to a lady on the broadband technical support team. I explain that I&#8217;ve been trying to open ports in my router but that I suspect my public IP might be shared with other customers. She tells me definitely that every router gets its own IP. So I ask, why then does the IP in my router differ from what I see on whatsmyip.org? She is perplexed by this and can&#8217;t explain why. Then I see the hostname on whatsmyip, which includes the letters &#8220;cgn&#8221; at the start of it. I tell her this and says it must be that they&#8217;re using a carrier-grade NAT, and she says someone that knows a bit more about this specific issue will call me up. They never did.<\/p>\n\n\n\n<p>I figure it might not be possible with ComHem with the way their networks are set up. I forget about it for a while since I was busy with other things, but this Monday I called them up again. I explained from the start that I had called before and figured out that I&#8217;m behind a CGN, and I ask if its possible to get my own public IP instead because otherwise I will never be able to open any ports. The lady I talked to this time was much more knowledgeable, and within minutes she had changed my router to be on its own public IP.<\/p>\n\n\n\n<p>Not only that, but she saw that I was on a 100\/10 connection and told me that they don&#8217;t offer that anymore. The lowest they have now is 150\/10, which is the same price. So she also went ahead and upgraded me to that which was nice. To be fair, ComHem should&#8217;ve notified me about this at some point since now I&#8217;ve been paying for something I didn&#8217;t actually receive&#8230; but it was still nice of her to do.<\/p>\n\n\n\n<p>My opinion of ComHem has been pretty bad since I got it. I don&#8217;t have a choice where I live, so I&#8217;m stuck with it. But it has definitely changed for the better after that last call to their support. I&#8217;m definitely more positively inclined towards them after this Monday. So thank you, lady on the broadband tech support, you really made my day. It&#8217;s thanks to you that it&#8217;s possible to read this blog entry!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So for the past several years, my server that is hosting this blog has been located at my father&#8217;s place. The only real reason for this was because his upload speed was 100Mbit\/s and the one I have at home is 100Mbit down, but only &#8220;up to&#8221; 10Mbit\/s upload. So even though it made it &hellip; <a href=\"https:\/\/synt4x.org\/blog\/index.php\/2019\/05\/15\/moving-the-servers-physical-location-and-carrier-grade-nats\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Moving the server&#8217;s physical location, and carrier-grade NATs.&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[45,44],"class_list":["post-198","post","type-post","status-publish","format-standard","hentry","category-server","tag-comhem","tag-isp"],"_links":{"self":[{"href":"https:\/\/synt4x.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/synt4x.org\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/synt4x.org\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/synt4x.org\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/synt4x.org\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=198"}],"version-history":[{"count":3,"href":"https:\/\/synt4x.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/198\/revisions"}],"predecessor-version":[{"id":201,"href":"https:\/\/synt4x.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/198\/revisions\/201"}],"wp:attachment":[{"href":"https:\/\/synt4x.org\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/synt4x.org\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/synt4x.org\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}