package main import ( "log" "net" ) func main() { ip := net.IPv4(192, 168, 0, 10) _, err := net.Dial("tcp", ip.String()+":8080") if err != nil { log.Fatal(err) } }