# Port Maksing

**URL:** <https://community.f5.com/t/port-maksing/3892>\
**Category:** Technical Forums\
**Tags:** irules, devops, application-delivery\
**Created:** [August 4, 2014, 10:47am UTC](https://community.f5.com/t/port-maksing/3892 "2014-08-04T10:47:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wasim\_Hassan\_13](https://avatars.discourse-cdn.com/v4/letter/w/7c8e57/32.png) [@Wasim\_Hassan\_13](https://community.f5.com/u/Wasim_Hassan_13)\
**Post date:** [August 4, 2014, 10:47am UTC](https://community.f5.com/t/port-maksing/3892/1 "2014-08-04T10:47:44Z")

</div>

Hi,

my application is running on port 8055

[http://nomcat.abc.com:8055/](http://nomcat.abc.com:8055/)

but I wan to give the user

[http://nomcat.abc.com](http://nomcat.abc.com)

and dont want to show the port number 8055 in the user browser.

ltm pool PL\_NOMCAT { members { 192.168.200.42:8055 { address 192.168.200.42 session monitor-enabled state up } } monitor /Common/gateway\_icmp

ltm virtual VS\_NOMCAT\_VIP { destination 192.168.210.242:any ip-protocol tcp mask 255.255.255.255 partition ENOC\_PRODUCTION persist { ENOC\_PROD\_STICKY { default yes } } pool PL\_NOMCAT profiles { /Common/http { } /Common/stream { } /Common/tcp { } } rules { NOMCAT\_IRULE } source 0.0.0.0/0 source-address-translation { type automap } translate-port disabled vlans { ENOC\_PRODUCTION\_VLAN\_210 } vlans-enabled I am trying the below iRule but no luck

```tcl
when HTTP_REQUEST {

HTTP::header remove Accept-Encoding

STREAM::disable

HTTP::header replace Host "nomcat.abc.com:8055"
`

```

```tcl
}
when HTTP_RESPONSE {
       if { [HTTP::header exists Location] } {
        HTTP::header replace Location [string map {"http://nomcat.abc.com:8055" "http://nomcat.abc.com"} [HTTP::header Location]]
    }

```

```tcl
` if { [HTTP::header Content-Type] contains "text" } {

    STREAM::expression {@http://nomcat.abc.com:8055@http://nomcat.abc.com@}

     enable STREAM processing
    STREAM::enable
}

```

}

Please assist.

---

<div class="post-metadata">

**Author:** ![Vitaliy\_Savrans](https://avatars.discourse-cdn.com/v4/letter/v/cc9497/32.png) [@Vitaliy\_Savrans](https://community.f5.com/u/Vitaliy_Savrans)\
**Post date:** [August 4, 2014, 11:25am UTC](https://community.f5.com/t/port-maksing/3892/2 "2014-08-04T11:25:35Z")

</div>

Hi,

maybe it’s better to configure vs listenning 80 or 443?

---

<div class="post-metadata">

**Author:** ![nitass](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/nitass/32/2270_2.png) [@nitass](https://community.f5.com/u/nitass)\
**Post date:** [August 4, 2014, 11:26am UTC](https://community.f5.com/t/port-maksing/3892/3 "2014-08-04T11:26:51Z")

</div>

can you try to enable translate-port?

```tcl
translate-port enabled

```
