mirror of
				https://github.com/mpolden/echoip.git
				synced 2025-10-31 17:08:12 +01:00 
			
		
		
		
	
			
				
					
						
					
					aca46e85daa8c6007938d9c19819f70cbb3b45d1
				
			
			
		
	ifconfig.co: Simple IP address lookup service
A simple service for looking up your IP address. This is the code that powers http://ifconfig.co
Basic usage
The usual suspects
$ curl ifconfig.co
127.0.0.1
$ wget -q -O - ifconfig.co
127.0.0.1
BSD fetch
$ fetch -q -o - ifconfig.co
127.0.0.1
Pass the appropriate flag (usually -4 and -6) to your tool to switch between IPv4 and IPv6 lookup.
Features
- Easy to remember domain name
- Supports IPv4 and IPv6
- Open source
- Fast
- Supports typical CLI tools (curl, wget and fetch)
Dependencies (optional)
- Daemonize script depends on https://github.com/bmc/daemonize
Why?
- To scratch an itch
- An excuse to use Go for something
- Faster than ifconfig.me and has IPv6 support
Code style
$ gofmt -tabs=false -tabwidth=4
Description
				
					Languages
				
				
								
								
									Go
								
								65.6%
							
						
							
								
								
									HTML
								
								29.4%
							
						
							
								
								
									Makefile
								
								4.4%
							
						
							
								
								
									Dockerfile
								
								0.6%