Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/

External IP address routing

  • 16-07-2025 02:53PM
    #1
    Registered Users, Registered Users 2, Paid Member Posts: 338 ✭✭


    Hi All

    At the moment I have an application running on a large Windows (AWS) server that allows survey equipment to log in with username and password to receive data.

    The equipment connects to a static ip address and port eg 123.456 789.100 port 2201.

    I need to change the application to a different server (Azure). It will have a different external static ip address eg 245.145.567.780

    The existing IP address is owned by AWS so not possible to move it to the Azure server. I will still have the existing server running in a slim down configuration though.

    Is there a method of routing traffic through the first ip address to the new ip address. If possible I do not wish to make changes to the surveying equipment.

    Thanks for any help.



Comments

  • Registered Users, Registered Users 2 Posts: 73,414 ✭✭✭✭L1011


    What actual protocol are they connecting with?



  • Registered Users, Registered Users 2, Paid Member Posts: 338 ✭✭louis346789


    A HTTP/1.1 protocol called NTRIP



  • Registered Users, Registered Users 2 Posts: 73,414 ✭✭✭✭L1011


    Would it work with a basic 301 redirect to the new IP?



  • Registered Users, Registered Users 2, Paid Member Posts: 338 ✭✭louis346789


    Am not sure. I understood a 301 redirect only worked with a Url rather than a numerical ip address?



  • Registered Users, Registered Users 2 Posts: 73,414 ✭✭✭✭L1011


    It's been a long time since I did it, but I think I remember doing it both from an IP and to an IP at different times, albeit I never had to do IP to IP.

    Otherwise, you are basically going to have to get your old IP to a router, e.g. a tiny pfsense instance.

    It would be a good idea to buy a cheap domain going forward so you can just redirect the domain should you change hosting again, or otherwise lose the IP.



  • Advertisement
  • Registered Users, Registered Users 2, Paid Member Posts: 338 ✭✭louis346789


    Yes I agree regarding purchasing an ip address is a good idea.

    I will try with the 301 redirect. Thanks for helping



  • Registered Users, Registered Users 2 Posts: 481 ✭✭munsterfan2


    If it's a linux server you should be able to do this with iptables or ssh



  • Registered Users, Registered Users 2 Posts: 11,069 ✭✭✭✭28064212


    301 redirect does work for IP to IP.

    However, the client equipment also needs to understand 301 redirects, and if it can't even be configured with a domain name instead of an IP address, I wouldn't have high hopes that it does.

    In that case, you could implement a reverse proxy instead, e.g. using something like nginx. It would receive the request, forward it to the new server, then send the response back to the equipment. From the equipment's point of view, nothing will have changed.

    Although of course the better solution would be to reconfigure the equipment to point to the new server, otherwise you have to keep the proxy running indefinitely (as well as introducing a new point-of-failure)

    Boardsie Enhancement Suite - a browser extension to make using Boards on desktop a better experience (includes full-width display, keyboard shortcuts, dark mode, and more). Now available through your browser's extension store.

    Firefox: https://addons.mozilla.org/addon/boardsie-enhancement-suite/

    Chrome/Edge/Opera: https://chromewebstore.google.com/detail/boardsie-enhancement-suit/bbgnmnfagihoohjkofdnofcfmkpdmmce



  • Registered Users, Registered Users 2, Paid Member Posts: 338 ✭✭louis346789


    Ok thanks. I will try nginx.



Advertisement