Skip to content

Connection timeout #141

@RandomNick2

Description

@RandomNick2

Connection timeout but i have good network

 package main

import (
	"fmt"
	"github.com/Philipp15b/go-steam"
	"github.com/Philipp15b/go-steam/protocol/steamlang"
	"log"
)

func main() {
	fmt.Println("started")
	loginInfo := new(steam.LogOnDetails)
	loginInfo.Username = "xozihox283"
	loginInfo.Password = "tj3JXH39"

	client := steam.NewClient()
	client.ConnectEurope()

	for event := range client.Events() {
		switch e := event.(type) {
		case *steam.ConnectedEvent:
			fmt.Println("connected")
			client.Auth.LogOn(loginInfo)
		case *steam.LoggedOnEvent:
			fmt.Println("LoggedOn")
			client.Social.SetPersonaState(steamlang.EPersonaState_Online)
		case steam.FatalErrorEvent:
			log.Print(e)
		case error:
			log.Print(e)
		}
	}
}

go run main.go
started
2024/06/06 18:04:47 Connect failed: dial tcp 146.66.152.14:27017: connect: operation timed out

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions