adb forward remote port to local machine

Recently google updated ADB service. And added reverse command that should do the job. From reverse documentation: This implements the adb reverse feature, i.e. the ability to reverse socket connections from a device to the host. <forward-command> is one of the forwarding commands that are described above, as in: list-forward forward:<local>;<remote> forward:norebind:<local>;<remote> killforward-all killforward:<local> Note …

Read more

Heroku + node.js: I have a server which uses multiple ports. How can I get Heroku to allocate them?

Okay, after doing some research I’ve found out that opening ports in Heroku is disabled and not allowed. The only way around this is to use sub-domains and then in-app to use a proxy module (like subdomain-router which I use). BUT – Heroku don’t let you create sub-domains on their domain, meaning that your-app.herokuapp.com is …

Read more

Running IIS Express with admin privileges

For Visual Studio 2015 and 2012 this solution will work. Go to Solution Explorer in Visual Studio, right click the web project and select “Unload Project” Next on the same project, right click and select ‘Edit Project File‘ Find the <DevelopmentServerPort>0</DevelopmentServerPort><IISUrl>http://localhost:56058/</IISUrl> xml tags and and remove them. Reload the project and run. Images to follow:

How to get the SPRING Boot HOST and PORT address during run time?

You can get this information via Environment for the port and the host you can obtain by using InternetAddress. @Autowired Environment environment; // Port via annotation @Value(“${server.port}”) int aPort; …… public void somePlaceInTheCode() { // Port environment.getProperty(“server.port”); // Local address InetAddress.getLocalHost().getHostAddress(); InetAddress.getLocalHost().getHostName(); // Remote address InetAddress.getLoopbackAddress().getHostAddress(); InetAddress.getLoopbackAddress().getHostName(); }