Arduino Uno Wifi Rev 2 WiFi setup

Hello, I am trying to setup my Arduino Uno Wifi Rev 2 connected to a power bank. I am having trouble finding the serial port for it when first connecting it. It works fine when it is hardwired to my laptop, but I am wanting to use the WiFi capabilities in order to run my code through a local web server. Are there any tutorials on basic WiFi configurations?

Getting started with the Arduino Uno WiFi Rev2

#include <SPI.h>
#include <WiFiNINA.h>

char ssid[] = "test";
char pass[] = "";
int keyIndex = 0;

int status = WL_IDLE_STATUS;
WiFiServer server(80);

void setup() {
  Serial.begin(9600);

  while (status != WL_CONNECTED) {
    Serial.print("Attempting to connect to Network named: ");
    Serial.println(ssid);
    status = WiFi.begin(ssid, pass);
    delay(10000);
  }
  server.begin();

  Serial.print("SSID: ");
  Serial.println(WiFi.SSID());
  IPAddress ip = WiFi.localIP();
  Serial.print("IP Address: ");
  Serial.println(ip);
}

void loop() {
  WiFiClient client = server.available();   
  if (client) {                             
    Serial.println("new client");           
    String currentLine = "";                
    while (client.connected()) {            
      if (client.available()) {             
        char c = client.read();             
        Serial.write(c);                    
        if (c == '\n') {                    

          if (currentLine.length() == 0) {

            client.println("Hello World");

            break;
          } else {
            currentLine = "";
          }
        } else if (c != '\r') {
          currentLine += c;
        }
      }
    }

    client.stop();
    Serial.println("client disonnected");
  }
}

Source: Arduino Uno with WiFi Basic Setup

WiFiNINA library

@kristiqpham

Moved your topic to it's current location as it is more suitable.

Could you take a few moments to Learn How To Use The Forum. Other general help and troubleshooting advice can be found here. It will help you get the best out of the forum in the future.

That is the code i'm using. It compiles but I'm not able to upload it since I'm not connected to any port. Nothing is showing up under the ports to select from. I've powered it on by connecting it to the power bank, am I missing a step in between?

It sounds like you are trying to upload the code OTA via wifi. That is not possible. You must first load the code via USB connection. Then you can unplug and power the board with your power bank. If your code works, you should be able to interact with the board through the HTML page with any browser. If you need make changes to the code that is loaded on the board, you will need to reconnect via USB again and upload the new code. Good luck.