How do I find and input a domain name in Raspberry Pi/Windows 10? - raspberry-pi4

I am trying to control my Raspberry Pi from my Windows 10 laptop. My Raspberry Pi needs my laptop's IP Address, my username on said laptop, a password, and a domain name. I have tried to find this information on my Windows Command Prompt and Raspberry Pi terminal, but the domain name keeps coming up as 'WORKGROUP.' I tried to put the domain name as WORKGROUP, or even the name of the laptop, but it still won't connect. I have also tried to ping my laptop from the Raspberry Pi monitor, the pinging was successful, but the two devices wouldn't connect even after I entered two different IP Addresses through Remmina on the Pi. I have a Raspberry Pi 4 Model B.

Your laptop will not have a domain name, unless you bought it from a domain register, and assigned it to the public IP that is, or forwards to your laptop.
If you are trying to connect to the laptop from the raspberry pi over ssh on the same network, you will only need your laptop username, password, and local IP address. You can find the local IP address of you laptop by typing into the command prompt
ipconfig
Then, look at IPv4 and you will find the local IP. In the raspberry pi console, type ssh (username)#(Ip_address)
If you are trying to connect to the raspberry pi from the laptop, the old way was to install a program like Putty, and put in the local IP of the raspberry pi, and username and control it that way. Windows now has an SSH service built in, and you can do this from powershell.
Go to manage optional features, and add OpenSSH Client (May need to reboot)
Then, open PowerShell and type ssh (username_of_pi)#(IP_of_pi)
Usually the default username of the raspberry pi is "pi" and the password is "raspberry"

Related

I have a problem to find my raspberry public address

i Have created a local web app hosted on my raspberry pi. I want to access the web app from outside so outside the local network.
To do that, I have configured dmz and I have added my raspberry local ip address.
Now how can I get the raspberry public ip address?
I have tried to use the bash commands: curl checkip.amazonaws.com. But the ip address i get is the same as my computer
How can I solve it? how can i access the raspberry from outside?
P.S: I control my raspberry via ssh
thank you :)
Your public address is the same for every device on your network because it's the IP address devices OUTSIDE of your local network see as illustrated by this quick diagram I've made.
If you want to access your local webserver you need to tell your router to forward requests to a given port to a local network address. So assuming your webserver is running on port 80 you need to tell your router to forward requests to 192.168.1.50 (assuming your RPi local address matches the diagram's) 🙃

How Do I Remote Desktop to a VMWare Windows 10 VM, not the base machine?

I have a PC running Windows 10. On that PC I have VMWare hosting a Windows 10 VM. I can run the VM without issue from the local machine. The VM has a typical Windows PC Name, different from the base machine.
When I try to make a Remote Desktop connection from a different PC to the VM using the VM PC Name, it connects to the base machine. I can see the VM running on the base machine and control it.
I need to be able to run several VM's on this base machine and then use RDP to run remote desktop sessions on the VM's.
Other configuration info:
The VM Network is configured as NAT and I have followed the instructions here
(https://kb.vmware.com/s/article/1018809)
If I change to Bridged for the Network then I can ping my other PC from the VM if I set up a
fixed IP address - nothing if I try DHCP but that may be due to company network constraints.
In Bridged mode, I can't ping back to the VM from my other PC. (Edit: fixed, this was just Network Discovery and Firewall settings)
I need this system running on Windows 10 as our IT department doesn't want to support my application (even though they agree to it being used) which means I can't go to a Windows Server option. Also, the VM's need to be Windows 10 for application compatibility.
All the equipment under test is in the same LAN subnet and on a single, dumb switch.
Any help would be appreciated.
Launch the menu item VM > Settings.
Search the start menu for command prompt from within the virtual machine. Enter ipconfig in the prompt and search for a value following the IPv4 Address. Record this address for later use.
Now select the menu item Edit > Virtual Network Editor.
Select the NAT network type and then choose NAT Settings.
From this new prompt, click Add to include a new port forwarder.
Enter the following information: Host Port: 9997, Type: TCP, Virtual machine IP address: Enter the IP you recorded in Step 2.
note: This port number is 3389 by default, Save any open prompts so the configuration changes can take place.
The final step is to enable RDP connections from within the operating system itself.

Access raspberry Pi without ip

Is there a way to reach the raspberry Pi, since the ip is dynamically assigned to each device.
I have to use the API that the raspberry Pi is serving.
You have to know its IP to access, for example, via SSH. To connect to your Pi via SSH, you will need to enable SSH first. So, you will have to connect the Pi to a monitor first to enable it.
To find out its IP, you can do a LAN neighbours scan in your network. You can use a mobile app like Wifi Analyzer or you can use a windows program like GlassWire.

How do I access my Ubuntu Server installed on Virtual box from anywhere in the World

I am trying to make an IOT using nodemcu and a LED. I want to access the Ubuntu Server(which is installed in the virtual box) through some other network(outside my LAN). How can I do it? I read many articles online, but I am not able to figure it out. I tried port forwarding but it did not work.
I am not sure what I am doing wrong. Is there's a problem in the port forwarding, or I am following a wrong method.
I have installed Ubuntu Server 16.04 LTS on my laptop via VirtualBox. I have installed LAMP. Also, network set to bridged adapter, plus I have dynamic IP
As I logged in, I ran ifconfig. It gave me the inet address as 192.168.16.101
Did you set the VM network interface to be NAT or Bridged?
If it is NAT, then you are essentially double NATTed which means you will need to port forward from your router to the VM host and then you will need to port forward from the host to the VM as the IP assigned will be local to the host machine.
However, the easiest is to set the VM network interface to Bridged.
This will mean the VM will be able access your network directly as it should be on the same subnet as your laptop and appear as another device, which your router will be able to port forward to.

How to connect to raspberry Pi over internet if we know only its MAC Address

I have Raspberry Pi and a mobile app developed in ionic.It has to communicate over SocketIO and normal HTTP request. I can communicate if i know IP address and port no. But what if I'm using it over internet and my raspberry pi's IP address is changing dynamically due to DHCP. How do i connect to my raspberry Pi device. Is their a way to connect if I know MAC address of Rasspberry PI.
Short Answer: no
Slightly Longer:
MAC is only useful at Layer 2. So the minute you have a router between you and the device, you will no longer be able to see the MAC. If you control the Layer 2 network you can statically assign a DHCP address, or you can look at the logs and see what IP it was assigned, but if the device is connecting to networks you don't control and its address is changing, you will need a way for the Raspberry Pi to register where it currently lives. There are a variety of ways to do this, such as dynamic dns registration, or you could have it phone home to some sort of locator service that your app could then query, etc... But without extra software you are probably out of luck.
You should use a dynamic IP service like www.noip.com. They provide a free linux and/or windows client.
That way, when your public IP changes, you will still be able to connect.

Resources