What is the purpose of the Microsoft Loopback Adapter?

When sending messages to 127.0.0.1 (or the localhost) the internal network driver typically handles this by shortcutting a few steps. If you have a networksniffer/protocol analyzer like wireshark, it can not see these shortcutted packets. By using a loopback adapter, the messages get send much further through the stack, enabling programs like wireshark to capture … Read more

Restricting MySQL connections from localhost to improve security

If you restrict access from remote hosts to your usernames and passwords then someone won’t be able to access the database externally. You could also configure your firewall to only allow traffic to 3306 (MySQL Default Port) from the localhost machine. Update To setup your user so they can only access through LOCALHOST use: GRANT … Read more

Visual Studio Code debugger with Chrome refused to connect to localhost

If anyone else is having this issue, I solved it by: 1)installing the ritwickdey/vscode-live-server available here: vscode-live-server link 2) restarting vscode 3) clicking the Go Live button at the bottom of the screen 4) getting the server address from the resulting Chrome window (ex: http://localhost:5500/) 5) changing the .vscode/launch.json file to include that server address: … Read more

AttributeError: ‘Settings’ object has no attribute ‘ROOT_URLCONF’

From django docs: A Django settings file contains all the configuration of your Django installation. When you use Django, you have to tell it which settings you’re using. Do this by using an environment variable, DJANGO_SETTINGS_MODULE. The value of DJANGO_SETTINGS_MODULE should be in Python path syntax, e.g. mysite.settings. Note that the settings module should be … Read more

How to use subdomains with localhost on IISExpress?

This can be accomplished by editing the applicationHost.config file C:\Users\yourProfile\Documents\IISExpress\config\applicationHost.config Visual Studio usually handles editing this file for you when you make configuration changes, but you can manually edit. Find the particular site you are working with and the following bindings should work: <bindings> <binding protocol=”http” bindingInformation=”*:5252:localhost” /> <binding protocol=”http” bindingInformation=”*:5252:contoso.localhost” /> </bindings> You can … Read more

send email from localhost

Update for rails 4.0 Now you need these code to make it work: # I recommend using this line to show error config.action_mailer.raise_delivery_errors = true ActionMailer::Base.smtp_settings = { :address => ‘smtp.gmail.com’, :domain => ‘mail.google.com’, :port => 587, :user_name => ‘[email protected]’, :password => ‘******’, :authentication => :plain, :enable_starttls_auto => true }

How tunneling services like ‘Localtunnel’ works without SSH?

The Short Answer (TL;DR) The Remote (i.e. the localtunnel software on your computer) initializes the connection to the Relay (i.e. localtunnel.me) acts as a multiplexing proxy and when Clients (i.e. web browsers) connect, the relay multiplexes the connections between remotes and clients by appending special headers with network information. Browser <–\ /–> Device Browser <—- … Read more