{"id":1462,"date":"2015-05-06T07:12:56","date_gmt":"2015-05-06T07:12:56","guid":{"rendered":"http:\/\/www.nikola-breznjak.com\/blog\/?p=1462"},"modified":"2015-08-03T06:11:38","modified_gmt":"2015-08-03T06:11:38","slug":"share-a-web-service-on-your-local-development-machine-with-localtunnel","status":"publish","type":"post","link":"https:\/\/nikola-breznjak.com\/blog\/codeproject\/share-a-web-service-on-your-local-development-machine-with-localtunnel\/","title":{"rendered":"Share a web service on your local development machine with Localtunnel"},"content":{"rendered":"<p>I was testing <a href=\"https:\/\/jenkins-ci.org\/\">Jenkins<\/a>\u00a0and as it doesn&#8217;t support localhost addresses I found\u00a0<a href=\"http:\/\/localtunnel.me\/\">Localtunnel<\/a>, which, and I qote,<\/p>\n<blockquote><p>allows you to easily share a web service on your local development machine without messing with DNS and firewall settings.<\/p>\n<p>Localtunnel will assign you a unique publicly accessible url that will proxy all requests to your locally running webserver.<\/p><\/blockquote>\n<p>You can \u00a0install it via npm:<\/p>\n<pre class=\"lang:default decode:true\">npm install -g localtunnel<\/pre>\n<p>Then, start your project\u00a0on some local port\u00a0(for example 1337), and make sure all works well locally.\u00a0Now, request a tunnel to your local server:<\/p>\n<pre class=\"lang:default decode:true\">lt --port 1337<\/pre>\n<p>And you should get an output like:<\/p>\n<pre class=\"lang:default decode:true\">your url is: https:\/\/awesome.localtunnel.me<\/pre>\n<p>You can use\u00a0this link now and\u00a0any requests to that url will be routed to your service on port 1337.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was testing Jenkins\u00a0and as it doesn&#8217;t support localhost addresses I found\u00a0Localtunnel, which, and I qote, allows you to easily share a web service on your local development&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1550,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,15],"tags":[],"class_list":["post-1462","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codeproject","category-quick-tips"],"_links":{"self":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/1462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/comments?post=1462"}],"version-history":[{"count":2,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/1462\/revisions"}],"predecessor-version":[{"id":1551,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/1462\/revisions\/1551"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media\/1550"}],"wp:attachment":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media?parent=1462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/categories?post=1462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/tags?post=1462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}