Re: [go-nuts] network programming about go

2017-11-10 Thread 2891132love
I try to change the IP address and close the software related,but it sometimes still can't run sucessfully.Sometimes it can run parts of the result I hope to see.It shows that the client can connect with the server but the server can't connect the client and get the message. 在 2017年11月7日星期二 UTC

Re: [go-nuts] network programming about go

2017-11-06 Thread Karan Chaudhary
Is the port 5000 on 192.168.153.239 open? If it is open, is your server running on that port? https://stackoverflow.com/questions/2972600/no-connection-could-be-made-because-the-target-machine-actively-refused-it On Monday, 6 November 2017 19:30:22 UTC+5:30, 28911...@gmail.com wrote: > > I try

Re: [go-nuts] network programming about go

2017-11-06 Thread 2891132love
I try to modify the program,but the result is: host:portfatal error: dial tcp 192.168.153.239:5000: connectex: No connection could be made because the target machine actively refused it.exit status 1.How to solve it?? 在 2017年11月6日星期一 UTC+8下午5:08:26,rog写道: > On 30 October 2017 at 06:55, <28911.

Re: [go-nuts] network programming about go

2017-11-06 Thread roger peppe
On 30 October 2017 at 06:55, <2891132l...@gmail.com> wrote: > I write this code in the follwings: > package main > > import ( > "fmt" > "net" > "os" > ) > > func main() { > service := ":5000" > tcpAddr, err := net.ResolveTCPAddr("tcp", service) > checkError(err) > listener, err := net.ListenTCP("t

Re: [go-nuts] network programming about go

2017-11-02 Thread Justin Israel
On Mon, Oct 30, 2017, 7:55 PM <2891132l...@gmail.com> wrote: > I write this code in the follwings: > package main > > import ( > "fmt" > "net" > "os" > ) > > func main() { > service := ":5000" > tcpAddr, err := net.ResolveTCPAddr("tcp", service) > checkError(err) > listener, err := net.ListenTCP("