Also: don't worry about hiding your IP address. 192.168.* is private 
address space and another Gopher can't connect to that remotely.

On Thursday, July 21, 2016 at 8:44:55 AM UTC-7, Yongxiu Wu wrote:
>
> I am using net/http/pprof to monitor my program. 
> I import the package _"net/http/pprof" ,and add some code snippets as 
> follow
> *...*
> func main(){
> debug()
> *...*
> }
>
> func debug(){
>   go func(){
>       http.ListenAndServe("localhost:6060", nil)
> }()
> }
>
> After that, I can access it in my localhost (ip is 172.20.x.x )
>
>
> <https://lh3.googleusercontent.com/-1L-FLA4m9EE/V5CXm_7vupI/AAAAAAAAAB8/Ha4udW2KQVUYd1zhBRQiPZxezFh3LDzxwCLcB/s1600/2.png>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Then I want to monitor my test server whose ip is 192.168.x.x, however it 
> doesn't work.
>
>
> <https://lh3.googleusercontent.com/-n36SoijSVcs/V5CaNBQ6TbI/AAAAAAAAACQ/xVgttJ3eIF0EtpvM1v8_jDc93m3xtLb5wCLcB/s1600/QQ%25E6%2588%25AA%25E5%259B%25BE20160721174704.png>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> I checked my test server and found
>
> First, the 6060 port is start
>
>
> <https://lh3.googleusercontent.com/-NeOV7CGJymc/V5CZCsNRzxI/AAAAAAAAACI/3lyNNqSpSb8RuHDxMuNedvMgyfejFjsdACLcB/s1600/QQ%25E6%2588%25AA%25E5%259B%25BE20160721174130.png>
>
> Second, the program is running correctly,and it contains two port,one is 
> 9606 and another is 6060.
>
> I start the 9606 by 
>
> http.ListenAndServe(":9606",nil) 
>
> And I can access the 9606 port.
>
>
> <https://lh3.googleusercontent.com/-e5NPfKgSvq8/V5Ce8tbHgBI/AAAAAAAAACg/XOiYmW75vgYYG817_WnoXv88mWzBzbo9gCLcB/s1600/QQ%25E6%2588%25AA%25E5%259B%25BE20160721180159.png>
>
>
>
>
> Third, to check whether it is caused by the two nil 
>
> http.ListenAndServe(":9606",nil)
>
> http.ListenAndServe(":6060",nil)
>
>
> I rewrite a test snippet as follow, the nil is replaced by serverMuxA. But 
> saddly, it still doesn't work.
>
>
> <https://lh3.googleusercontent.com/-4ljZKLuK_ZM/V5Cgr9hobUI/AAAAAAAAACw/vlIYP5dWJRkWzTrTxpS0aK2jjCiuV27bACLcB/s1600/QQ%25E6%2588%25AA%25E5%259B%25BE20160721181439.png>
>  
> <https://lh3.googleusercontent.com/-6iHtd997scg/V5ChKUQSGMI/AAAAAAAAAC0/D5jV82NWAi4apFSLy01g26Tcz9eRsonGwCLcB/s1600/QQ%25E6%2588%25AA%25E5%259B%25BE20160721181646.png>
>
> <https://lh3.googleusercontent.com/-4ljZKLuK_ZM/V5Cgr9hobUI/AAAAAAAAACw/vlIYP5dWJRkWzTrTxpS0aK2jjCiuV27bACLcB/s1600/QQ%25E6%2588%25AA%25E5%259B%25BE20160721181439.png>
>
> <https://lh3.googleusercontent.com/-4ljZKLuK_ZM/V5Cgr9hobUI/AAAAAAAAACw/vlIYP5dWJRkWzTrTxpS0aK2jjCiuV27bACLcB/s1600/QQ%25E6%2588%25AA%25E5%259B%25BE20160721181439.png>And
>  
> now, I have no idea about it. Could  anyone can help me? Thanks all ! 
> <https://lh3.googleusercontent.com/-4ljZKLuK_ZM/V5Cgr9hobUI/AAAAAAAAACw/vlIYP5dWJRkWzTrTxpS0aK2jjCiuV27bACLcB/s1600/QQ%25E6%2588%25AA%25E5%259B%25BE20160721181439.png>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to