---
title: "Static Public IP for GPU Hosting: Public Ports Without ISP Upgrades | NeedPorts"
description: "Need a stable public endpoint for a GPU host, Vast.ai machine, SSH, API, or inference dashboard? Use public forwarded ports without changing ISP plans."
image: "https://needports.com/og-image.svg"
canonical: "https://needports.com/static-public-ip-for-gpu-hosting.html"
html: "https://needports.com/static-public-ip-for-gpu-hosting.html"
---
# Static public IP alternative for GPU hosting


Need a stable public endpoint for a GPU host, Vast.ai machine, SSH, API, or inference dashboard? Use public forwarded ports without changing ISP plans.


## Quick diagnosis checklist


1. Confirm the service is listening locally.
2. Confirm the service responds from the host itself.
3. Check host firewall rules before changing router rules.
4. Compare the host/router WAN address with the public IP seen by the internet.
5. Test from a different network, not from the same LAN.
6. If inbound traffic still times out, use a public forwarded endpoint instead of relying on upstream NAT.


## Commands to run first


```
# What public IPv4 does the internet see?
curl -4 ifconfig.me

# What is listening locally?
ss -tulpen
sudo ss -tulpen

# Test a local web/API service
curl -v http://127.0.0.1:8080
curl -v http://127.0.0.1:8000/health

# Check common Linux firewalls
sudo ufw status verbose
sudo iptables -S
sudo nft list ruleset
```

## Setup example


**YOUR_SETUP_TOKEN is shown after signup/trial checkout and binds the client to your assigned endpoint.**


```
curl -fsSL https://api.needports.com/install | sudo bash -s YOUR_SETUP_TOKEN --accept-tos
sudo needports setup --dry-run
sudo needports expose custom --public-port 30000 --local-port 8080 --name "Service" --confirm --restart
curl -v http://your-needports-endpoint:30000
```

## Security notes


- Expose only services you intend to make public.
- Use SSH keys, HTTPS/TLS, app authentication, or IP restrictions where appropriate.
- Never expose the Docker daemon socket or unauthenticated admin panels.
- Keep a private fallback access method for critical systems.


## Related guides


[CGNAT port forwarding](/cgnat-port-forwarding.html), [Vast.ai port forwarding](/vast-ai-port-forwarding.html), [NeedPorts client commands](/client-commands.html), and [NeedPorts security model](/security.html).


## FAQ


**Can I port forward behind CGNAT?**


Not with normal router forwarding alone. You need the ISP to provide a public IP, or you need an outbound tunnel/public endpoint service.


**Does DDNS fix CGNAT?**


No. DDNS only names an IP address; it does not create an inbound route through upstream CGNAT.


**How do I know if I am behind CGNAT?**


Compare the router WAN IP with curl -4 ifconfig.me. Addresses in 100.64.0.0/10 or private ranges are strong CGNAT signals.


**Do I need router access for NeedPorts?**


No. NeedPorts uses an outbound connection from your machine to a public tunnel endpoint.


**Can I expose Docker, SSH, APIs, or game servers?**


Yes, if the local service is listening and the NeedPorts plan/port supports the needed protocol.

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://needports.com/#organization",
      "name": "NeedPorts",
      "url": "https://needports.com/"
    },
    {
      "@type": "BreadcrumbList",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://needports.com/"
        },
        {
          "@type": "ListItem",
          "position": 2,
          "name": "Guides",
          "item": "https://needports.com/guides.html"
        },
        {
          "@type": "ListItem",
          "position": 3,
          "name": "Static Public IP for GPU Hosting: Public Ports Without ISP Upgrades | NeedPorts",
          "item": "https://needports.com/static-public-ip-for-gpu-hosting.html"
        }
      ]
    },
    {
      "@type": "Article",
      "headline": "Static Public IP for GPU Hosting: Public Ports Without ISP Upgrades | NeedPorts",
      "description": "Need a stable public endpoint for a GPU host, Vast.ai machine, SSH, API, or inference dashboard? Use public forwarded ports without changing ISP plans.",
      "mainEntityOfPage": "https://needports.com/static-public-ip-for-gpu-hosting.html",
      "author": {
        "@id": "https://needports.com/#organization"
      },
      "publisher": {
        "@id": "https://needports.com/#organization"
      }
    },
    {
      "@type": "FAQPage",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "Can I port forward behind CGNAT?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Not with normal router forwarding alone. You need the ISP to provide a public IP, or you need an outbound tunnel/public endpoint service."
          }
        },
        {
          "@type": "Question",
          "name": "Does DDNS fix CGNAT?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "No. DDNS only names an IP address; it does not create an inbound route through upstream CGNAT."
          }
        },
        {
          "@type": "Question",
          "name": "How do I know if I am behind CGNAT?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Compare the router WAN IP with curl -4 ifconfig.me. Addresses in 100.64.0.0/10 or private ranges are strong CGNAT signals."
          }
        },
        {
          "@type": "Question",
          "name": "Do I need router access for NeedPorts?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "No. NeedPorts uses an outbound connection from your machine to a public tunnel endpoint."
          }
        },
        {
          "@type": "Question",
          "name": "Can I expose Docker, SSH, APIs, or game servers?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes, if the local service is listening and the NeedPorts plan/port supports the needed protocol."
          }
        }
      ]
    }
  ]
}
```
