[35] Results

Golang : Get UDP client IP address and differentiate clients by port number

golang udp udp-client-address port-number

Problem :

Your UDP server program needs to find out the UDP client IP address before writing to client. However,….... read more

Mac/Linux and Golang : Fix bind: address already in use error

linux mac-os-x golang bind-address-in-use pid lsof...

Not really a tutorial. However, it is good to put this here as a guide for junior software developers.

.... read more

Golang : Serving HTTP and Websocket from different ports in a program example

golang web-socket HTTP port mux


For some reason you want to split the port use by your program to serve HTTP and Web-socket traffic.….... read more

Linux/Unix/MacOSX : Find out which application is listening to port 80 or use which IP version

linux lsof unix macosx port-number

Problem :

You need to find out which Linux/Unix or MacOSX applications are listening to port 80( or any other….... read more

Golang : What is the default port number for connecting to MySQL/MariaDB database ?

golang database mysql mariadb port-number

Problem :

How to determine which port number when trying to connect to a database with https://github.com/go-sql-driver/mysql and….... read more

Golang : Simple client server example

golang client-server connection listening port

This a quick tutorial on creating a bare bone client-server program with Golang. We will start with the server part….... read more

Golang : How to check if IP address is in range

golang ip-address

For security purpose, sometimes a server can only accept connection from clients that are trusted and of certain IP addresses.….... read more

Get client IP Address in Go

golang ip address

Knowing who is accessing your web server can be useful for tracking a user's activity. In this tutorial, we will learn how to get client….... read more