AlexVeeBee's Wiki

Cant connect!

  1. Lets try pinging Google
ping 8.8.8.8

if connected, check the Understanding New IP and Port Forwarding down below
if not continue here

  1. Getting a new IP
    Lets re-generate out network config
sudodhclient 
  1. Getting yur netowrk card
    run this command
ifconfig

and check for your local ip and check the network card to the left

  1. Edit your network config
    Go to the root directory of the server/desktop and edit etc/netoplan/00-installer-config.yaml
etc/netoplan/00-installer-config.yaml

netowrk for VMs as examples

network:
  version: 2
  ethernets:
    ens33: # << Change to network card name
      addresses: [192.168.1.65/24] # << Change to VM name
      gateway4: 192.168.1.2
      nameservers:
        addresses: [1.1.1.1, 1.0.0.1]

Understanding New IP and Port Forwarding

When you're setting up a new IP address for your network, there are a few things you need to keep in mind, particularly when it comes to port forwarding and static leases.

Port Forwarding

Port forwarding is a technique used to allow external devices to access services on your internal network. This can be useful for things like hosting a server, or running a home security camera system.

If you're experiencing issues with port forwarding on your new IP address, the first thing you should check is that your router's port forwarding settings are properly configured. This typically involves specifying the internal IP address of the device you want to forward ports to, as well as the specific ports that need to be opened.

If you're still having trouble, you may need to check your router's firewall settings to ensure that they're not blocking the incoming connections. Additionally, you may need to check that your router's firmware is up to date, as some older versions may have bugs that can cause port forwarding issues.

Static Leases

Static leases are used to assign a specific IP address to a specific device on your network. This can be useful if you have a device that you want to always have the same IP address, such as a server or a gaming console.

If you're having issues with static leases on your new IP address, the first thing you should check is that your router's DHCP settings are properly configured. This typically involves specifying the MAC address of the device you want to assign a static IP to, as well as the specific IP address you want to assign.

If you're still having trouble, you may need to check your router's DHCP settings to ensure that there are no conflicts with other devices on your network. Additionally, you may need to check that your router's firmware is up to date, as some older versions may have bugs that can cause DHCP issues.

Notes

VSCode SSH error

Key error

To fix a key verifaction error head to file exploer and head to c:/users/<username>/.shh/known_hosts and clear the key that you were trying to access and try again to connect